Table of Contents

Class CotSwapToFwdAdapter

Namespace
NanoQL.Models
Assembly
NanoQL.dll

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

ctModel MarketModel

The 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

ImmutableArray<double>

Evolution

Gets the evolution the model is built on.

public override EvolutionDescription Evolution { get; }

Property Value

EvolutionDescription

InitialRates

Gets the rates at time zero.

public override ImmutableArray<double> InitialRates { get; }

Property Value

ImmutableArray<double>

NumberOfFactors

Gets the number of factors.

public override int NumberOfFactors { get; }

Property Value

int

NumberOfRates

Gets the number of rates.

public override int NumberOfRates { get; }

Property Value

int

NumberOfSteps

Gets the number of evolution steps.

public override int NumberOfSteps { get; }

Property Value

int

Methods

PseudoRoot(int)

The pseudo-square root of the i-th step's covariance, rates by factors.

public override Matrix PseudoRoot(int i)

Parameters

i int

The step, below the number of steps.

Returns

Matrix

A copy of the step's pseudo-root.

Exceptions

ArgumentOutOfRangeException

i isn't a step.