Record Class AlphaValidation.CrossValidationResult
java.lang.Object
java.lang.Record
com.quantfinlib.alpha.AlphaValidation.CrossValidationResult
- Enclosing class:
AlphaValidation
public static record AlphaValidation.CrossValidationResult(double[] blockIcs, double meanIc, double icStd)
extends Record
Per-block ICs with their dispersion — consistency across regimes.
-
Constructor Summary
ConstructorsConstructorDescriptionCrossValidationResult(double[] blockIcs, double meanIc, double icStd) Creates an instance of aCrossValidationResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondouble[]blockIcs()Returns the value of theblockIcsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleicStd()Returns the value of theicStdrecord component.doublemeanIc()Returns the value of themeanIcrecord component.doubleFraction of blocks where the IC kept the overall sign.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CrossValidationResult
public CrossValidationResult(double[] blockIcs, double meanIc, double icStd) Creates an instance of aCrossValidationResultrecord class.- Parameters:
blockIcs- the value for theblockIcsrecord componentmeanIc- the value for themeanIcrecord componenticStd- the value for theicStdrecord component
-
-
Method Details
-
signConsistency
public double signConsistency()Fraction of blocks where the IC kept the overall sign. -
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. -
blockIcs
public double[] blockIcs()Returns the value of theblockIcsrecord component.- Returns:
- the value of the
blockIcsrecord component
-
meanIc
public double meanIc()Returns the value of themeanIcrecord component.- Returns:
- the value of the
meanIcrecord component
-
icStd
public double icStd()Returns the value of theicStdrecord component.- Returns:
- the value of the
icStdrecord component
-