Record Class DisjunctMatrixValidationResult
java.lang.Object
java.lang.Record
com.knezevic.edaf.v3.problems.discrete.disjunct.DisjunctMatrixValidationResult
public record DisjunctMatrixValidationResult(String definition, DisjunctMatrixValidationMode mode, boolean valid, boolean exact, long evaluatedSubsets, long totalSubsets, long violatingSubsets, double estimatedViolationRate, double confidenceLevel, double errorBound, double violationRateUpperBound, int witnessDeviation, int[] witnessSubset, String message)
extends Record
Structured validation outcome for DM/RM/ADM definitions.
When exact=true, valid is mathematically exact.
In sampled mode, valid=true means no violating subset was observed and
the returned confidence bound quantifies residual uncertainty.
-
Constructor Summary
ConstructorsConstructorDescriptionDisjunctMatrixValidationResult(String definition, DisjunctMatrixValidationMode mode, boolean valid, boolean exact, long evaluatedSubsets, long totalSubsets, long violatingSubsets, double estimatedViolationRate, double confidenceLevel, double errorBound, double violationRateUpperBound, int witnessDeviation, int[] witnessSubset, String message) Creates an instance of aDisjunctMatrixValidationResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of theconfidenceLevelrecord component.Returns the value of thedefinitionrecord component.final booleanIndicates whether some other object is "equal to" this one.doubleReturns the value of theerrorBoundrecord component.doubleReturns the value of theestimatedViolationRaterecord component.longReturns the value of theevaluatedSubsetsrecord component.booleanexact()Returns the value of theexactrecord component.final inthashCode()Returns a hash code value for this object.booleanReturns true only when a concrete violating subset witness was discovered.message()Returns the value of themessagerecord component.mode()Returns the value of themoderecord component.final StringtoString()Returns a string representation of this record class.longReturns the value of thetotalSubsetsrecord component.booleanvalid()Returns the value of thevalidrecord component.longReturns the value of theviolatingSubsetsrecord component.doubleReturns the value of theviolationRateUpperBoundrecord component.intReturns the value of thewitnessDeviationrecord component.int[]Returns the value of thewitnessSubsetrecord component.
-
Constructor Details
-
DisjunctMatrixValidationResult
public DisjunctMatrixValidationResult(String definition, DisjunctMatrixValidationMode mode, boolean valid, boolean exact, long evaluatedSubsets, long totalSubsets, long violatingSubsets, double estimatedViolationRate, double confidenceLevel, double errorBound, double violationRateUpperBound, int witnessDeviation, int[] witnessSubset, String message) Creates an instance of aDisjunctMatrixValidationResultrecord class.- Parameters:
definition- the value for thedefinitionrecord componentmode- the value for themoderecord componentvalid- the value for thevalidrecord componentexact- the value for theexactrecord componentevaluatedSubsets- the value for theevaluatedSubsetsrecord componenttotalSubsets- the value for thetotalSubsetsrecord componentviolatingSubsets- the value for theviolatingSubsetsrecord componentestimatedViolationRate- the value for theestimatedViolationRaterecord componentconfidenceLevel- the value for theconfidenceLevelrecord componenterrorBound- the value for theerrorBoundrecord componentviolationRateUpperBound- the value for theviolationRateUpperBoundrecord componentwitnessDeviation- the value for thewitnessDeviationrecord componentwitnessSubset- the value for thewitnessSubsetrecord componentmessage- the value for themessagerecord component
-
-
Method Details
-
hasWitness
public boolean hasWitness()Returns true only when a concrete violating subset witness was discovered. -
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. -
definition
Returns the value of thedefinitionrecord component.- Returns:
- the value of the
definitionrecord component
-
mode
Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
valid
public boolean valid()Returns the value of thevalidrecord component.- Returns:
- the value of the
validrecord component
-
exact
public boolean exact()Returns the value of theexactrecord component.- Returns:
- the value of the
exactrecord component
-
evaluatedSubsets
public long evaluatedSubsets()Returns the value of theevaluatedSubsetsrecord component.- Returns:
- the value of the
evaluatedSubsetsrecord component
-
totalSubsets
public long totalSubsets()Returns the value of thetotalSubsetsrecord component.- Returns:
- the value of the
totalSubsetsrecord component
-
violatingSubsets
public long violatingSubsets()Returns the value of theviolatingSubsetsrecord component.- Returns:
- the value of the
violatingSubsetsrecord component
-
estimatedViolationRate
public double estimatedViolationRate()Returns the value of theestimatedViolationRaterecord component.- Returns:
- the value of the
estimatedViolationRaterecord component
-
confidenceLevel
public double confidenceLevel()Returns the value of theconfidenceLevelrecord component.- Returns:
- the value of the
confidenceLevelrecord component
-
errorBound
public double errorBound()Returns the value of theerrorBoundrecord component.- Returns:
- the value of the
errorBoundrecord component
-
violationRateUpperBound
public double violationRateUpperBound()Returns the value of theviolationRateUpperBoundrecord component.- Returns:
- the value of the
violationRateUpperBoundrecord component
-
witnessDeviation
public int witnessDeviation()Returns the value of thewitnessDeviationrecord component.- Returns:
- the value of the
witnessDeviationrecord component
-
witnessSubset
public int[] witnessSubset()Returns the value of thewitnessSubsetrecord component.- Returns:
- the value of the
witnessSubsetrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-