Record Class AlphaValidation.Fold
java.lang.Object
java.lang.Record
com.quantfinlib.alpha.AlphaValidation.Fold
- 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.doubleReturns the value of theoutOfSampleIcrecord 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) 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 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
-