Record Class CalendarAnomalies.TurnOfMonth
java.lang.Object
java.lang.Record
com.quantfinlib.alpha.CalendarAnomalies.TurnOfMonth
- Enclosing class:
CalendarAnomalies
public static record CalendarAnomalies.TurnOfMonth(double insideMean, double outsideMean, double tStat, int insideCount, int outsideCount)
extends Record
The turn-of-month split, with a Welch t-stat on the difference.
-
Constructor Summary
ConstructorsConstructorDescriptionTurnOfMonth(double insideMean, double outsideMean, double tStat, int insideCount, int outsideCount) Creates an instance of aTurnOfMonthrecord 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.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.
-
Constructor Details
-
TurnOfMonth
public TurnOfMonth(double insideMean, double outsideMean, double tStat, int insideCount, int outsideCount) 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 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
public double tStat()Returns the value of thetStatrecord component.- Returns:
- the value of the
tStatrecord component
-
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
-