Record Class SabrModel.Params
java.lang.Object
java.lang.Record
com.quantfinlib.pricing.SabrModel.Params
- Enclosing class:
SabrModel
public static record SabrModel.Params(double alpha, double beta, double rho, double nu, double rmse)
extends Record
Calibrated SABR parameters and the fit's RMSE in vol points.
-
Constructor Summary
ConstructorsConstructorDescriptionParams(double alpha, double beta, double rho, double nu, double rmse) 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.final inthashCode()Returns a hash code value for this object.doublenu()Returns the value of thenurecord component.doublerho()Returns the value of therhorecord component.doublermse()Returns the value of thermserecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Params
public Params(double alpha, double beta, double rho, double nu, double rmse) Creates an instance of aParamsrecord class.- Parameters:
alpha- the value for thealpharecord componentbeta- the value for thebetarecord componentrho- the value for therhorecord componentnu- the value for thenurecord componentrmse- the value for thermserecord 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. -
alpha
public double alpha()Returns the value of thealpharecord component.- Returns:
- the value of the
alpharecord component
-
beta
public double beta()Returns the value of thebetarecord component.- Returns:
- the value of the
betarecord component
-
rho
public double rho()Returns the value of therhorecord component.- Returns:
- the value of the
rhorecord component
-
nu
public double nu()Returns the value of thenurecord component.- Returns:
- the value of the
nurecord component
-
rmse
public double rmse()Returns the value of thermserecord component.- Returns:
- the value of the
rmserecord component
-