Package dev.dokimos.server.dto.v1
Record Class GateResult.RegressedEvaluator
java.lang.Object
java.lang.Record
dev.dokimos.server.dto.v1.GateResult.RegressedEvaluator
- Record Components:
evaluator- the evaluator namebaselineMean- mean score on the baseline side, or null when absent therecandidateMean- mean score on the candidate side, or null when absent theredelta- candidateMean minus baselineMeanpValue- significance test p-value
- Enclosing class:
GateResult
public static record GateResult.RegressedEvaluator(String evaluator, Double baselineMean, Double candidateMean, double delta, double pValue)
extends Record
A single evaluator's regression between baseline and candidate.
-
Constructor Summary
ConstructorsConstructorDescriptionRegressedEvaluator(String evaluator, Double baselineMean, Double candidateMean, double delta, double pValue) Creates an instance of aRegressedEvaluatorrecord 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 theevaluatorrecord component.final inthashCode()Returns a hash code value for this object.doublepValue()Returns the value of thepValuerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RegressedEvaluator
public RegressedEvaluator(String evaluator, Double baselineMean, Double candidateMean, double delta, double pValue) Creates an instance of aRegressedEvaluatorrecord class.- Parameters:
evaluator- the value for theevaluatorrecord componentbaselineMean- the value for thebaselineMeanrecord componentcandidateMean- the value for thecandidateMeanrecord componentdelta- the value for thedeltarecord componentpValue- the value for thepValuerecord 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 '=='. -
evaluator
Returns the value of theevaluatorrecord component.- Returns:
- the value of the
evaluatorrecord 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
-
pValue
public double pValue()Returns the value of thepValuerecord component.- Returns:
- the value of the
pValuerecord component
-