Record Class AlphaValidation.Fold
java.lang.Object
java.lang.Record
com.quantfinlib.alpha.AlphaValidation.Fold
- Record Components:
inSampleObservations- training-window IC dates of the chosen candidateoutOfSampleObservations- test-window IC dates (NaN IC when 0)selectionBias- expected maximum in-sample mean IC of the fold's candidates under the null (0 for one candidate)
- Enclosing class:
AlphaValidation
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thechosenFactorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of theinSampleIcrecord component.intReturns the value of theinSampleObservationsrecord component.doubleReturns the value of theoutOfSampleIcrecord component.intReturns the value of theoutOfSampleObservationsrecord component.doubleReturns the value of theselectionBiasrecord component.inttestEnd()Returns the value of thetestEndrecord component.intReturns the value of thetestStartrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetrainStartrecord component.
-
Constructor Details
-
Fold
public Fold(int trainStart, int testStart, int testEnd, String chosenFactor, double inSampleIc, double outOfSampleIc, int inSampleObservations, int outOfSampleObservations, double selectionBias) Creates an instance of aFoldrecord class.- Parameters:
trainStart- the value for thetrainStartrecord componenttestStart- the value for thetestStartrecord componenttestEnd- the value for thetestEndrecord componentchosenFactor- the value for thechosenFactorrecord componentinSampleIc- the value for theinSampleIcrecord componentoutOfSampleIc- the value for theoutOfSampleIcrecord componentinSampleObservations- the value for theinSampleObservationsrecord componentoutOfSampleObservations- the value for theoutOfSampleObservationsrecord componentselectionBias- the value for theselectionBiasrecord 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. -
trainStart
public int trainStart()Returns the value of thetrainStartrecord component.- Returns:
- the value of the
trainStartrecord component
-
testStart
public int testStart()Returns the value of thetestStartrecord component.- Returns:
- the value of the
testStartrecord component
-
testEnd
public int testEnd()Returns the value of thetestEndrecord component.- Returns:
- the value of the
testEndrecord component
-
chosenFactor
Returns the value of thechosenFactorrecord component.- Returns:
- the value of the
chosenFactorrecord component
-
inSampleIc
public double inSampleIc()Returns the value of theinSampleIcrecord component.- Returns:
- the value of the
inSampleIcrecord component
-
outOfSampleIc
public double outOfSampleIc()Returns the value of theoutOfSampleIcrecord component.- Returns:
- the value of the
outOfSampleIcrecord component
-
inSampleObservations
public int inSampleObservations()Returns the value of theinSampleObservationsrecord component.- Returns:
- the value of the
inSampleObservationsrecord component
-
outOfSampleObservations
public int outOfSampleObservations()Returns the value of theoutOfSampleObservationsrecord component.- Returns:
- the value of the
outOfSampleObservationsrecord component
-
selectionBias
public double selectionBias()Returns the value of theselectionBiasrecord component.- Returns:
- the value of the
selectionBiasrecord component
-