Record Class IterationMetric
java.lang.Object
java.lang.Record
com.knezevic.edaf.v3.persistence.query.IterationMetric
-
Constructor Summary
ConstructorsConstructorDescriptionIterationMetric(int iteration, long evaluations, double bestFitness, double meanFitness, double stdFitness, String metricsJson, String diagnosticsJson, String createdAt) Creates an instance of aIterationMetricrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of thebestFitnessrecord component.Returns the value of thecreatedAtrecord component.Returns the value of thediagnosticsJsonrecord component.final booleanIndicates whether some other object is "equal to" this one.longReturns the value of theevaluationsrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of theiterationrecord component.doubleReturns the value of themeanFitnessrecord component.Returns the value of themetricsJsonrecord component.doubleReturns the value of thestdFitnessrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
IterationMetric
public IterationMetric(int iteration, long evaluations, double bestFitness, double meanFitness, double stdFitness, String metricsJson, String diagnosticsJson, String createdAt) Creates an instance of aIterationMetricrecord class.- Parameters:
iteration- the value for theiterationrecord componentevaluations- the value for theevaluationsrecord componentbestFitness- the value for thebestFitnessrecord componentmeanFitness- the value for themeanFitnessrecord componentstdFitness- the value for thestdFitnessrecord componentmetricsJson- the value for themetricsJsonrecord componentdiagnosticsJson- the value for thediagnosticsJsonrecord componentcreatedAt- the value for thecreatedAtrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
iteration
public int iteration()Returns the value of theiterationrecord component.- Returns:
- the value of the
iterationrecord component
-
evaluations
public long evaluations()Returns the value of theevaluationsrecord component.- Returns:
- the value of the
evaluationsrecord component
-
bestFitness
public double bestFitness()Returns the value of thebestFitnessrecord component.- Returns:
- the value of the
bestFitnessrecord component
-
meanFitness
public double meanFitness()Returns the value of themeanFitnessrecord component.- Returns:
- the value of the
meanFitnessrecord component
-
stdFitness
public double stdFitness()Returns the value of thestdFitnessrecord component.- Returns:
- the value of the
stdFitnessrecord component
-
metricsJson
Returns the value of themetricsJsonrecord component.- Returns:
- the value of the
metricsJsonrecord component
-
diagnosticsJson
Returns the value of thediagnosticsJsonrecord component.- Returns:
- the value of the
diagnosticsJsonrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-