Record Class OverfitProbability.Result
java.lang.Object
java.lang.Record
com.quantfinlib.backtest.validation.OverfitProbability.Result
- Record Components:
pbo- fraction of IS/OOS splits whose in-sample winner ranked at or below the out-of-sample mediancombinations- number of symmetric splits evaluated, C(S, S/2)logits- one lambda per combination (enumeration order)
- Enclosing class:
OverfitProbability
public static record OverfitProbability.Result(double pbo, int combinations, double[] logits)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionResult(double pbo, int combinations, double[] logits) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thecombinationsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.double[]logits()Returns the value of thelogitsrecord component.doublepbo()Returns the value of thepborecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Result
public Result(double pbo, int combinations, double[] logits) Creates an instance of aResultrecord class.- Parameters:
pbo- the value for thepborecord componentcombinations- the value for thecombinationsrecord componentlogits- the value for thelogitsrecord 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. -
pbo
-
combinations
public int combinations()Returns the value of thecombinationsrecord component.- Returns:
- the value of the
combinationsrecord component
-
logits
-