Record Class GjrGarch11.Params
java.lang.Object
java.lang.Record
com.quantfinlib.volatility.GjrGarch11.Params
- Enclosing class:
GjrGarch11
public static record GjrGarch11.Params(double omega, double alpha, double gamma, double beta, double logLikelihood)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionParams(double omega, double alpha, double gamma, double beta, double logLikelihood) Creates an instance of aParamsrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoublealpha()Returns the value of thealpharecord component.doublebeta()Returns the value of thebetarecord component.final booleanIndicates whether some other object is "equal to" this one.doublegamma()Returns the value of thegammarecord component.final inthashCode()Returns a hash code value for this object.doubleReturns the value of thelogLikelihoodrecord component.doubleomega()Returns the value of theomegarecord component.doubleα + γ/2 + β — the mean-reversion persistence under symmetric returns.final StringtoString()Returns a string representation of this record class.double
-
Constructor Details
-
Params
public Params(double omega, double alpha, double gamma, double beta, double logLikelihood) Creates an instance of aParamsrecord class.- Parameters:
omega- the value for theomegarecord componentalpha- the value for thealpharecord componentgamma- the value for thegammarecord componentbeta- the value for thebetarecord componentlogLikelihood- the value for thelogLikelihoodrecord component
-
-
Method Details
-
persistence
public double persistence()α + γ/2 + β — the mean-reversion persistence under symmetric returns. -
unconditionalVariance
public double unconditionalVariance() -
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. -
omega
public double omega()Returns the value of theomegarecord component.- Returns:
- the value of the
omegarecord component
-
alpha
public double alpha()Returns the value of thealpharecord component.- Returns:
- the value of the
alpharecord component
-
gamma
public double gamma()Returns the value of thegammarecord component.- Returns:
- the value of the
gammarecord component
-
beta
public double beta()Returns the value of thebetarecord component.- Returns:
- the value of the
betarecord component
-
logLikelihood
public double logLikelihood()Returns the value of thelogLikelihoodrecord component.- Returns:
- the value of the
logLikelihoodrecord component
-