Record Class CalendarAnomalies.DayOfWeekProfile
java.lang.Object
java.lang.Record
com.quantfinlib.alpha.CalendarAnomalies.DayOfWeekProfile
- Enclosing class:
CalendarAnomalies
public static record CalendarAnomalies.DayOfWeekProfile(double[] meanReturn, double[] tStat, int[] count)
extends Record
Per-day-of-week profile, indexed Monday = 0 … Sunday = 6. Days
with no observations report NaN mean and t.
-
Constructor Summary
ConstructorsConstructorDescriptionDayOfWeekProfile(double[] meanReturn, double[] tStat, int[] count) Creates an instance of aDayOfWeekProfilerecord class. -
Method Summary
Modifier and TypeMethodDescriptionint[]count()Returns the value of thecountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.double[]Returns the value of themeanReturnrecord component.final StringtoString()Returns a string representation of this record class.double[]tStat()Returns the value of thetStatrecord component.
-
Constructor Details
-
DayOfWeekProfile
public DayOfWeekProfile(double[] meanReturn, double[] tStat, int[] count) Creates an instance of aDayOfWeekProfilerecord class.- Parameters:
meanReturn- the value for themeanReturnrecord componenttStat- the value for thetStatrecord componentcount- the value for thecountrecord 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 withObjects::equals(Object,Object). -
meanReturn
public double[] meanReturn()Returns the value of themeanReturnrecord component.- Returns:
- the value of the
meanReturnrecord component
-
tStat
public double[] tStat()Returns the value of thetStatrecord component.- Returns:
- the value of the
tStatrecord component
-
count
public int[] count()Returns the value of thecountrecord component.- Returns:
- the value of the
countrecord component
-