Record Class AlphaValidation.SensitivityResult
java.lang.Object
java.lang.Record
com.quantfinlib.alpha.AlphaValidation.SensitivityResult
- Enclosing class:
AlphaValidation
-
Constructor Summary
ConstructorsConstructorDescriptionSensitivityResult(String[] names, double[] meanIcs, double worstNeighborDrop) Creates an instance of aSensitivityResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbest()The candidate with the best mean IC.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.double[]meanIcs()Returns the value of themeanIcsrecord component.String[]names()Returns the value of thenamesrecord component.final StringtoString()Returns a string representation of this record class.doubleReturns the value of theworstNeighborDroprecord component.
-
Constructor Details
-
SensitivityResult
Creates an instance of aSensitivityResultrecord class.- Parameters:
names- the value for thenamesrecord componentmeanIcs- the value for themeanIcsrecord componentworstNeighborDrop- the value for theworstNeighborDroprecord component
-
-
Method Details
-
best
The candidate with the best mean IC. -
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. -
names
Returns the value of thenamesrecord component.- Returns:
- the value of the
namesrecord component
-
meanIcs
public double[] meanIcs()Returns the value of themeanIcsrecord component.- Returns:
- the value of the
meanIcsrecord component
-
worstNeighborDrop
public double worstNeighborDrop()Returns the value of theworstNeighborDroprecord component.- Returns:
- the value of the
worstNeighborDroprecord component
-