Record Class AlphaValidation.WalkForwardResult
java.lang.Object
java.lang.Record
com.quantfinlib.alpha.AlphaValidation.WalkForwardResult
- Enclosing class:
AlphaValidation
public static record AlphaValidation.WalkForwardResult(List<AlphaValidation.Fold> folds, double meanInSampleIc, double meanOutOfSampleIc)
extends Record
All folds plus the aggregate in-sample vs out-of-sample comparison.
-
Constructor Summary
ConstructorsConstructorDescriptionWalkForwardResult(List<AlphaValidation.Fold> folds, double meanInSampleIc, double meanOutOfSampleIc) Creates an instance of aWalkForwardResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleOOS/IS efficiency: below ~0.5 the selection is mostly fitting noise.final booleanIndicates whether some other object is "equal to" this one.folds()Returns the value of thefoldsrecord component.final inthashCode()Returns a hash code value for this object.doubleReturns the value of themeanInSampleIcrecord component.doubleReturns the value of themeanOutOfSampleIcrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WalkForwardResult
public WalkForwardResult(List<AlphaValidation.Fold> folds, double meanInSampleIc, double meanOutOfSampleIc) Creates an instance of aWalkForwardResultrecord class.- Parameters:
folds- the value for thefoldsrecord componentmeanInSampleIc- the value for themeanInSampleIcrecord componentmeanOutOfSampleIc- the value for themeanOutOfSampleIcrecord component
-
-
Method Details
-
efficiency
public double efficiency()OOS/IS efficiency: below ~0.5 the selection is mostly fitting noise. -
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. -
folds
Returns the value of thefoldsrecord component.- Returns:
- the value of the
foldsrecord component
-
meanInSampleIc
public double meanInSampleIc()Returns the value of themeanInSampleIcrecord component.- Returns:
- the value of the
meanInSampleIcrecord component
-
meanOutOfSampleIc
public double meanOutOfSampleIc()Returns the value of themeanOutOfSampleIcrecord component.- Returns:
- the value of the
meanOutOfSampleIcrecord component
-