Package dev.dokimos.core.comparison
Record Class EvaluatorDelta
java.lang.Object
java.lang.Record
dev.dokimos.core.comparison.EvaluatorDelta
- Record Components:
baselineMean- mean on the baseline side, or null when the evaluator is absent therecandidateMean- mean on the candidate side, or null when the evaluator is absent theredelta- candidateMean minus baselineMean, or 0.0 when either side is missing
public record EvaluatorDelta(String evaluatorName, Double baselineMean, Double candidateMean, double delta, ComparisonStatus status, SignificanceResult significance)
extends Record
Change in a single evaluator's mean score between baseline and candidate.
-
Constructor Summary
ConstructorsConstructorDescriptionEvaluatorDelta(String evaluatorName, Double baselineMean, Double candidateMean, double delta, ComparisonStatus status, SignificanceResult significance) Creates an instance of aEvaluatorDeltarecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebaselineMeanrecord component.Returns the value of thecandidateMeanrecord component.doubledelta()Returns the value of thedeltarecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theevaluatorNamerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thesignificancerecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EvaluatorDelta
public EvaluatorDelta(String evaluatorName, Double baselineMean, Double candidateMean, double delta, ComparisonStatus status, SignificanceResult significance) Creates an instance of aEvaluatorDeltarecord class.- Parameters:
evaluatorName- the value for theevaluatorNamerecord componentbaselineMean- the value for thebaselineMeanrecord componentcandidateMean- the value for thecandidateMeanrecord componentdelta- the value for thedeltarecord componentstatus- the value for thestatusrecord componentsignificance- the value for thesignificancerecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 '=='. -
evaluatorName
Returns the value of theevaluatorNamerecord component.- Returns:
- the value of the
evaluatorNamerecord component
-
baselineMean
Returns the value of thebaselineMeanrecord component.- Returns:
- the value of the
baselineMeanrecord component
-
candidateMean
Returns the value of thecandidateMeanrecord component.- Returns:
- the value of the
candidateMeanrecord component
-
delta
public double delta()Returns the value of thedeltarecord component.- Returns:
- the value of the
deltarecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
significance
Returns the value of thesignificancerecord component.- Returns:
- the value of the
significancerecord component
-