Class CotSwapToFwdAdapter
A coterminal swap-rate market model as a forward-rate one, in the frozen-coefficient approximation: its initial rates the forwards of the coterminal model's curve, each step's pseudo-root the inverse of the coterminal Z matrix times the coterminal model's, the expired rates' rows zero.
public sealed class CotSwapToFwdAdapter : MarketModel
- Inheritance
-
CotSwapToFwdAdapter
- Inherited Members
Remarks
Immutable: its pseudo-roots are computed at construction, and a read returns a copy. Its displacements, evolution and counts are the coterminal model's. A pseudo-root read past the steps, which QuantLib reads unchecked, is refused.
Constructors
CotSwapToFwdAdapter(MarketModel)
Initializes a new instance of the CotSwapToFwdAdapter class.
public CotSwapToFwdAdapter(MarketModel ctModel)
Parameters
ctModelMarketModelThe coterminal swap-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.