Record Class AlphaReport.Decay
java.lang.Object
java.lang.Record
com.quantfinlib.alpha.AlphaReport.Decay
- Enclosing class:
AlphaReport
public static record AlphaReport.Decay(int[] horizons, double[] meanIcs, double halfLifeBars)
extends Record
IC per horizon plus the interpolated half-life of the shortest-horizon IC.
-
Constructor Summary
ConstructorsConstructorDescriptionDecay(int[] horizons, double[] meanIcs, double halfLifeBars) Creates an instance of aDecayrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.format()doubleReturns the value of thehalfLifeBarsrecord component.final inthashCode()Returns a hash code value for this object.int[]horizons()Returns the value of thehorizonsrecord component.double[]meanIcs()Returns the value of themeanIcsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Decay
public Decay(int[] horizons, double[] meanIcs, double halfLifeBars) Creates an instance of aDecayrecord class.- Parameters:
horizons- the value for thehorizonsrecord componentmeanIcs- the value for themeanIcsrecord componenthalfLifeBars- the value for thehalfLifeBarsrecord component
-
-
Method Details
-
format
-
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. -
horizons
public int[] horizons()Returns the value of thehorizonsrecord component.- Returns:
- the value of the
horizonsrecord component
-
meanIcs
public double[] meanIcs()Returns the value of themeanIcsrecord component.- Returns:
- the value of the
meanIcsrecord component
-
halfLifeBars
public double halfLifeBars()Returns the value of thehalfLifeBarsrecord component.- Returns:
- the value of the
halfLifeBarsrecord component
-