Record Class HarRv.Params
java.lang.Object
java.lang.Record
com.quantfinlib.volatility.HarRv.Params
- Enclosing class:
HarRv
public static record HarRv.Params(double intercept, double betaDaily, double betaWeekly, double betaMonthly)
extends Record
Fitted coefficients:
rv⁺ = c + βd·d + βw·w + βm·m.-
Constructor Summary
ConstructorsConstructorDescriptionParams(double intercept, double betaDaily, double betaWeekly, double betaMonthly) Creates an instance of aParamsrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubleReturns the value of thebetaDailyrecord component.doubleReturns the value of thebetaMonthlyrecord component.doubleReturns the value of thebetaWeeklyrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.doubleReturns the value of theinterceptrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Params
public Params(double intercept, double betaDaily, double betaWeekly, double betaMonthly) Creates an instance of aParamsrecord class.- Parameters:
intercept- the value for theinterceptrecord componentbetaDaily- the value for thebetaDailyrecord componentbetaWeekly- the value for thebetaWeeklyrecord componentbetaMonthly- the value for thebetaMonthlyrecord 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. -
intercept
public double intercept()Returns the value of theinterceptrecord component.- Returns:
- the value of the
interceptrecord component
-
betaDaily
public double betaDaily()Returns the value of thebetaDailyrecord component.- Returns:
- the value of the
betaDailyrecord component
-
betaWeekly
public double betaWeekly()Returns the value of thebetaWeeklyrecord component.- Returns:
- the value of the
betaWeeklyrecord component
-
betaMonthly
public double betaMonthly()Returns the value of thebetaMonthlyrecord component.- Returns:
- the value of the
betaMonthlyrecord component
-