Record Class HestonCalibrator.Result
java.lang.Object
java.lang.Record
com.quantfinlib.pricing.HestonCalibrator.Result
- Record Components:
params- fitted parametersimpliedVolRmse- root-mean-square implied-vol error of the fit (vol units)iterations- Levenberg-Marquardt iterations takenconverged- true when the gradient or the relative cost change fell below tolerance
- Enclosing class:
HestonCalibrator
public static record HestonCalibrator.Result(Heston.Params params, double impliedVolRmse, int iterations, boolean converged)
extends Record
Calibration outcome.
-
Constructor Summary
ConstructorsConstructorDescriptionResult(Heston.Params params, double impliedVolRmse, int iterations, boolean converged) Creates an instance of aResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theconvergedrecord 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 theimpliedVolRmserecord component.intReturns the value of theiterationsrecord component.params()Returns the value of theparamsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Result
Creates an instance of aResultrecord class.- Parameters:
params- the value for theparamsrecord componentimpliedVolRmse- the value for theimpliedVolRmserecord componentiterations- the value for theiterationsrecord componentconverged- the value for theconvergedrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
params
-
impliedVolRmse
public double impliedVolRmse()Returns the value of theimpliedVolRmserecord component.- Returns:
- the value of the
impliedVolRmserecord component
-
iterations
public int iterations()Returns the value of theiterationsrecord component.- Returns:
- the value of the
iterationsrecord component
-
converged
-