Record Class Heston.Params
java.lang.Object
java.lang.Record
com.quantfinlib.pricing.Heston.Params
- Enclosing class:
Heston
public static record Heston.Params(double kappa, double theta, double sigmaV, double rho, double v0)
extends Record
Model parameters.
feller() tells you which regime you are in.-
Constructor Summary
ConstructorsConstructorDescriptionParams(double kappa, double theta, double sigmaV, double rho, double v0) Creates an instance of aParamsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.doublefeller()The Feller ratio 2κθ/σᵥ²; ≥ 1 keeps variance strictly positive.final inthashCode()Returns a hash code value for this object.doublekappa()Returns the value of thekapparecord component.doublerho()Returns the value of therhorecord component.doublesigmaV()Returns the value of thesigmaVrecord component.doubletheta()Returns the value of thethetarecord component.final StringtoString()Returns a string representation of this record class.doublev0()Returns the value of thev0record component.
-
Constructor Details
-
Params
public Params(double kappa, double theta, double sigmaV, double rho, double v0) Creates an instance of aParamsrecord class.- Parameters:
kappa- the value for thekapparecord componenttheta- the value for thethetarecord componentsigmaV- the value for thesigmaVrecord componentrho- the value for therhorecord componentv0- the value for thev0record component
-
-
Method Details
-
feller
public double feller()The Feller ratio 2κθ/σᵥ²; ≥ 1 keeps variance strictly positive. -
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. -
kappa
public double kappa()Returns the value of thekapparecord component.- Returns:
- the value of the
kapparecord component
-
theta
public double theta()Returns the value of thethetarecord component.- Returns:
- the value of the
thetarecord component
-
sigmaV
public double sigmaV()Returns the value of thesigmaVrecord component.- Returns:
- the value of the
sigmaVrecord component
-
rho
public double rho()Returns the value of therhorecord component.- Returns:
- the value of the
rhorecord component
-
v0
public double v0()Returns the value of thev0record component.- Returns:
- the value of the
v0record component
-