Package dev.dokimos.core.comparison
Record Class RunComparisonResult
java.lang.Object
java.lang.Record
dev.dokimos.core.comparison.RunComparisonResult
public record RunComparisonResult(double baselinePassRate, double candidatePassRate, double passRateDelta, SignificanceResult passRateSignificance, boolean passRateRegressed, boolean passRateImproved, int improvedCount, int regressedCount, int unchangedCount, int addedCount, int removedCount, int significantImprovedCount, int significantRegressedCount, List<EvaluatorDelta> evaluatorDeltas, List<ItemComparison> items)
extends Record
Result of comparing a baseline set of runs against a candidate set. Side pass rates cover each
side's full item set; significance is computed on the paired (shared) items. Item-level counts
are significance-gated;
hasRegressions() is the canonical gate predicate.-
Constructor Summary
ConstructorsConstructorDescriptionRunComparisonResult(double baselinePassRate, double candidatePassRate, double passRateDelta, SignificanceResult passRateSignificance, boolean passRateRegressed, boolean passRateImproved, int improvedCount, int regressedCount, int unchangedCount, int addedCount, int removedCount, int significantImprovedCount, int significantRegressedCount, List<EvaluatorDelta> evaluatorDeltas, List<ItemComparison> items) Creates an instance of aRunComparisonResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theaddedCountrecord component.doubleReturns the value of thebaselinePassRaterecord component.doubleReturns the value of thecandidatePassRaterecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theevaluatorDeltasrecord component.final inthashCode()Returns a hash code value for this object.booleanTrue when the overall pass rate or any evaluator is significantly regressed.intReturns the value of theimprovedCountrecord component.Evaluator deltas flagged as significant improvements.items()Returns the value of theitemsrecord component.doubleReturns the value of thepassRateDeltarecord component.booleanReturns the value of thepassRateImprovedrecord component.booleanReturns the value of thepassRateRegressedrecord component.Returns the value of thepassRateSignificancerecord component.intReturns the value of theregressedCountrecord component.Evaluator deltas flagged as significant regressions.intReturns the value of theremovedCountrecord component.intReturns the value of thesignificantImprovedCountrecord component.intReturns the value of thesignificantRegressedCountrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of theunchangedCountrecord component.
-
Constructor Details
-
RunComparisonResult
public RunComparisonResult(double baselinePassRate, double candidatePassRate, double passRateDelta, SignificanceResult passRateSignificance, boolean passRateRegressed, boolean passRateImproved, int improvedCount, int regressedCount, int unchangedCount, int addedCount, int removedCount, int significantImprovedCount, int significantRegressedCount, List<EvaluatorDelta> evaluatorDeltas, List<ItemComparison> items) Creates an instance of aRunComparisonResultrecord class.- Parameters:
baselinePassRate- the value for thebaselinePassRaterecord componentcandidatePassRate- the value for thecandidatePassRaterecord componentpassRateDelta- the value for thepassRateDeltarecord componentpassRateSignificance- the value for thepassRateSignificancerecord componentpassRateRegressed- the value for thepassRateRegressedrecord componentpassRateImproved- the value for thepassRateImprovedrecord componentimprovedCount- the value for theimprovedCountrecord componentregressedCount- the value for theregressedCountrecord componentunchangedCount- the value for theunchangedCountrecord componentaddedCount- the value for theaddedCountrecord componentremovedCount- the value for theremovedCountrecord componentsignificantImprovedCount- the value for thesignificantImprovedCountrecord componentsignificantRegressedCount- the value for thesignificantRegressedCountrecord componentevaluatorDeltas- the value for theevaluatorDeltasrecord componentitems- the value for theitemsrecord component
-
-
Method Details
-
regressions
Evaluator deltas flagged as significant regressions. -
improvements
Evaluator deltas flagged as significant improvements. -
hasRegressions
public boolean hasRegressions()True when the overall pass rate or any evaluator is significantly regressed. -
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 '=='. -
baselinePassRate
public double baselinePassRate()Returns the value of thebaselinePassRaterecord component.- Returns:
- the value of the
baselinePassRaterecord component
-
candidatePassRate
public double candidatePassRate()Returns the value of thecandidatePassRaterecord component.- Returns:
- the value of the
candidatePassRaterecord component
-
passRateDelta
public double passRateDelta()Returns the value of thepassRateDeltarecord component.- Returns:
- the value of the
passRateDeltarecord component
-
passRateSignificance
Returns the value of thepassRateSignificancerecord component.- Returns:
- the value of the
passRateSignificancerecord component
-
passRateRegressed
public boolean passRateRegressed()Returns the value of thepassRateRegressedrecord component.- Returns:
- the value of the
passRateRegressedrecord component
-
passRateImproved
public boolean passRateImproved()Returns the value of thepassRateImprovedrecord component.- Returns:
- the value of the
passRateImprovedrecord component
-
improvedCount
public int improvedCount()Returns the value of theimprovedCountrecord component.- Returns:
- the value of the
improvedCountrecord component
-
regressedCount
public int regressedCount()Returns the value of theregressedCountrecord component.- Returns:
- the value of the
regressedCountrecord component
-
unchangedCount
public int unchangedCount()Returns the value of theunchangedCountrecord component.- Returns:
- the value of the
unchangedCountrecord component
-
addedCount
public int addedCount()Returns the value of theaddedCountrecord component.- Returns:
- the value of the
addedCountrecord component
-
removedCount
public int removedCount()Returns the value of theremovedCountrecord component.- Returns:
- the value of the
removedCountrecord component
-
significantImprovedCount
public int significantImprovedCount()Returns the value of thesignificantImprovedCountrecord component.- Returns:
- the value of the
significantImprovedCountrecord component
-
significantRegressedCount
public int significantRegressedCount()Returns the value of thesignificantRegressedCountrecord component.- Returns:
- the value of the
significantRegressedCountrecord component
-
evaluatorDeltas
Returns the value of theevaluatorDeltasrecord component.- Returns:
- the value of the
evaluatorDeltasrecord component
-
items
Returns the value of theitemsrecord component.- Returns:
- the value of the
itemsrecord component
-