Record Class AlphaCombiner.Settings
java.lang.Object
java.lang.Record
com.quantfinlib.alpha.AlphaCombiner.Settings
- Record Components:
horizon- holding horizonHin bars (≥ 1)icHalfLife- half-life of the date weights, in IC dates (> 0)shrinkToEqual-δin [0, 1]step- bars between IC dates (≥ 1)orthogonalize- apply per-date Gram-Schmidt
- Enclosing class:
AlphaCombiner
public static record AlphaCombiner.Settings(int horizon, double icHalfLife, double shrinkToEqual, int step, boolean orthogonalize)
extends Record
Combination settings.
-
Constructor Summary
ConstructorsConstructorDescriptionSettings(int horizon, double icHalfLife, double shrinkToEqual, int step, boolean orthogonalize) Creates an instance of aSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.inthorizon()Returns the value of thehorizonrecord component.doubleReturns the value of theicHalfLiferecord component.static AlphaCombiner.Settingsof(int horizon) Orthogonalised, no shrinkage, flat date weights, one IC date per bar.booleanReturns the value of theorthogonalizerecord component.doubleReturns the value of theshrinkToEqualrecord component.intstep()Returns the value of thesteprecord component.final StringtoString()Returns a string representation of this record class.withIcHalfLife(double dates) withOrthogonalize(boolean on) withShrinkToEqual(double delta)
-
Constructor Details
-
Settings
public Settings(int horizon, double icHalfLife, double shrinkToEqual, int step, boolean orthogonalize) Creates an instance of aSettingsrecord class.- Parameters:
horizon- the value for thehorizonrecord componenticHalfLife- the value for theicHalfLiferecord componentshrinkToEqual- the value for theshrinkToEqualrecord componentstep- the value for thesteprecord componentorthogonalize- the value for theorthogonalizerecord component
-
-
Method Details
-
of
Orthogonalised, no shrinkage, flat date weights, one IC date per bar. -
withShrinkToEqual
-
withIcHalfLife
-
withOrthogonalize
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
horizon
-
icHalfLife
public double icHalfLife()Returns the value of theicHalfLiferecord component.- Returns:
- the value of the
icHalfLiferecord component
-
shrinkToEqual
public double shrinkToEqual()Returns the value of theshrinkToEqualrecord component.- Returns:
- the value of the
shrinkToEqualrecord component
-
step
-
orthogonalize
public boolean orthogonalize()Returns the value of theorthogonalizerecord component.- Returns:
- the value of the
orthogonalizerecord component
-