Class FwdToCotSwapAdapter
A forward-rate market model as a coterminal swap-rate one, in the frozen-coefficient approximation: its initial rates the coterminal swap rates of the forward model's curve, each step's pseudo-root the coterminal Z matrix times the forward model's, the expired rates' rows zero.
public sealed class FwdToCotSwapAdapter : MarketModel
- Inheritance
-
FwdToCotSwapAdapter
- Inherited Members
Remarks
Immutable: its pseudo-roots are computed at construction, and a read returns a copy. Its displacements, evolution and counts are the forward model's. A pseudo-root read past the steps, which QuantLib reads unchecked, is refused.
Constructors
FwdToCotSwapAdapter(MarketModel)
Initializes a new instance of the FwdToCotSwapAdapter class.
public FwdToCotSwapAdapter(MarketModel fwdModel)
Parameters
fwdModelMarketModelThe forward-rate model, its displacements equal and every rate time to its last evolution time an evolution time.
Exceptions
- ArgumentException
The displacements differ, or the evolution skips a rate time.
Properties
Displacements
Gets the rates' displacements.
public override ImmutableArray<double> Displacements { get; }
Property Value
Evolution
Gets the evolution the model is built on.
public override EvolutionDescription Evolution { get; }
Property Value
InitialRates
Gets the rates at time zero.
public override ImmutableArray<double> InitialRates { get; }
Property Value
NumberOfFactors
Gets the number of factors.
public override int NumberOfFactors { get; }
Property Value
NumberOfRates
Gets the number of rates.
public override int NumberOfRates { get; }
Property Value
NumberOfSteps
Gets the number of evolution steps.
public override int NumberOfSteps { get; }
Property Value
Methods
PseudoRoot(int)
The pseudo-square root of the i-th step's covariance, rates by factors.
public override Matrix PseudoRoot(int i)
Parameters
iintThe step, below the number of steps.
Returns
- Matrix
A copy of the step's pseudo-root.
Exceptions
- ArgumentOutOfRangeException
iisn't a step.