Record Class CalendarAnomalies.TurnOfMonth
java.lang.Object
java.lang.Record
com.quantfinlib.alpha.CalendarAnomalies.TurnOfMonth
- Record Components:
tStat- Newey-West t-stat of the inside-minus-outside differencewelchTStat- iid Welch t-stat of the same difference
- Enclosing class:
CalendarAnomalies
public static record CalendarAnomalies.TurnOfMonth(double insideMean, double outsideMean, double tStat, int insideCount, int outsideCount, double welchTStat, int hacLag)
extends Record
The turn-of-month split.
-
Constructor Summary
ConstructorsConstructorDescriptionTurnOfMonth(double insideMean, double outsideMean, double tStat, int insideCount, int outsideCount, double welchTStat, int hacLag) Creates an instance of aTurnOfMonthrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.inthacLag()Returns the value of thehacLagrecord component.final inthashCode()Returns a hash code value for this object.intReturns the value of theinsideCountrecord component.doubleReturns the value of theinsideMeanrecord component.intReturns the value of theoutsideCountrecord component.doubleReturns the value of theoutsideMeanrecord component.final StringtoString()Returns a string representation of this record class.doubletStat()Returns the value of thetStatrecord component.doubleReturns the value of thewelchTStatrecord component.
-
Constructor Details
-
TurnOfMonth
public TurnOfMonth(double insideMean, double outsideMean, double tStat, int insideCount, int outsideCount, double welchTStat, int hacLag) Creates an instance of aTurnOfMonthrecord class.- Parameters:
insideMean- the value for theinsideMeanrecord componentoutsideMean- the value for theoutsideMeanrecord componenttStat- the value for thetStatrecord componentinsideCount- the value for theinsideCountrecord componentoutsideCount- the value for theoutsideCountrecord componentwelchTStat- the value for thewelchTStatrecord componenthacLag- the value for thehacLagrecord 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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
insideMean
public double insideMean()Returns the value of theinsideMeanrecord component.- Returns:
- the value of the
insideMeanrecord component
-
outsideMean
public double outsideMean()Returns the value of theoutsideMeanrecord component.- Returns:
- the value of the
outsideMeanrecord component
-
tStat
-
insideCount
public int insideCount()Returns the value of theinsideCountrecord component.- Returns:
- the value of the
insideCountrecord component
-
outsideCount
public int outsideCount()Returns the value of theoutsideCountrecord component.- Returns:
- the value of the
outsideCountrecord component
-
welchTStat
public double welchTStat()Returns the value of thewelchTStatrecord component.- Returns:
- the value of the
welchTStatrecord component
-
hacLag
public int hacLag()Returns the value of thehacLagrecord component.- Returns:
- the value of the
hacLagrecord component
-