Class CTSMMCapletCalibrationResults
A coterminal swap market model caplet calibration's results: QuantLib's inspectors of a calibrated
CTSMMCapletCalibration, the fit's errors, the swap rates' pseudo-roots and the model's caplet and swaption
volatilities.
public sealed class CTSMMCapletCalibrationResults
- Inheritance
-
CTSMMCapletCalibrationResults
- Inherited Members
Remarks
Immutable: a pseudo-root read returns a copy. The deformation size is null where the calibration doesn't compute it,
where QuantLib returns its initializer's 987654321 (ctsmmcapletcalibration.cpp:199).
Constructors
CTSMMCapletCalibrationResults(int, double, double, double, double, IEnumerable<Matrix>, ImmutableArray<double>, ImmutableArray<double>, ImmutableArray<double>, ImmutableArray<ImmutableArray<double>>, double?, ImmutableArray<double>?)
Initializes a new instance of the CTSMMCapletCalibrationResults class.
public CTSMMCapletCalibrationResults(int failures, double capletRmsError, double capletMaxError, double swaptionRmsError, double swaptionMaxError, IEnumerable<Matrix> swapPseudoRoots, ImmutableArray<double> mdlCapletVols, ImmutableArray<double> mktSwaptionVols, ImmutableArray<double> mdlSwaptionVols, ImmutableArray<ImmutableArray<double>> timeDependentCalibratedSwaptionVols, double? deformationSize, ImmutableArray<double>? alpha)
Parameters
failuresintThe last pass's failures.
capletRmsErrordoubleThe caplet volatilities' root-mean-square error.
capletMaxErrordoubleThe caplet volatilities' largest error.
swaptionRmsErrordoubleThe swaption volatilities' root-mean-square error.
swaptionMaxErrordoubleThe swaption volatilities' largest error.
swapPseudoRootsIEnumerable<Matrix>Each step's swap-rate pseudo-root; copied.
mdlCapletVolsImmutableArray<double>The model's caplet volatilities.
mktSwaptionVolsImmutableArray<double>The market's swaption volatilities.
mdlSwaptionVolsImmutableArray<double>The model's swaption volatilities.
timeDependentCalibratedSwaptionVolsImmutableArray<ImmutableArray<double>>Each swap rate's calibrated volatility over the steps.
deformationSizedouble?The deformation size, or null where the calibration doesn't compute it.
alphaImmutableArray<double>?The alpha form's α of each rate, or null for the other calibrations.
Properties
Alpha
Gets the alpha form's α of each rate, null for the other calibrations.
public ImmutableArray<double>? Alpha { get; }
Property Value
CapletMaxError
Gets the caplet volatilities' largest error.
public double CapletMaxError { get; }
Property Value
CapletRmsError
Gets the caplet volatilities' root-mean-square error.
public double CapletRmsError { get; }
Property Value
Converged
Gets a value indicating whether the last pass had no failure, QuantLib's calibrate
result.
public bool Converged { get; }
Property Value
DeformationSize
Gets the deformation size, null where the calibration doesn't compute it.
public double? DeformationSize { get; }
Property Value
Failures
Gets the last pass's failures.
public int Failures { get; }
Property Value
MdlCapletVols
Gets the model's caplet volatilities.
public ImmutableArray<double> MdlCapletVols { get; }
Property Value
MdlSwaptionVols
Gets the model's swaption volatilities.
public ImmutableArray<double> MdlSwaptionVols { get; }
Property Value
MktSwaptionVols
Gets the market's swaption volatilities.
public ImmutableArray<double> MktSwaptionVols { get; }
Property Value
SwaptionMaxError
Gets the swaption volatilities' largest error.
public double SwaptionMaxError { get; }
Property Value
SwaptionRmsError
Gets the swaption volatilities' root-mean-square error.
public double SwaptionRmsError { get; }
Property Value
Methods
SwapPseudoRoot(int)
The i-th step's swap-rate pseudo-root.
public Matrix SwapPseudoRoot(int i)
Parameters
iintThe step.
Returns
- Matrix
A copy of the pseudo-root.
Exceptions
- ArgumentOutOfRangeException
iisn't a step.
SwapPseudoRoots()
Each step's swap-rate pseudo-root.
public ImmutableArray<Matrix> SwapPseudoRoots()
Returns
- ImmutableArray<Matrix>
Copies of the pseudo-roots.
TimeDependentCalibratedSwaptionVols(int)
The i-th swap rate's calibrated volatility over the steps.
public ImmutableArray<double> TimeDependentCalibratedSwaptionVols(int i)
Parameters
iintThe rate.
Returns
- ImmutableArray<double>
The volatilities.
Exceptions
- ArgumentOutOfRangeException
iisn't a rate.