Table of Contents

Class TwoFactorModel

Namespace
NanoQL.Models
Assembly
NanoQL.dll

The abstract two-factor short-rate model class: its short rate a function of two state variables.

public abstract class TwoFactorModel : ShortRateModel, ICalibratedModel
Inheritance
TwoFactorModel
Implements
Derived
Inherited Members
Extension Methods

Remarks

An extension point, as in QuantLib: G2 derives from it.

Constructors

TwoFactorModel(int)

Initializes a new instance of the TwoFactorModel class.

protected TwoFactorModel(int nArguments)

Parameters

nArguments int

The number of arguments.

Exceptions

ArgumentOutOfRangeException

nArguments is negative.

Methods

Dynamics()

The model's short-rate dynamics.

public abstract TwoFactorModelShortRateDynamics Dynamics()

Returns

TwoFactorModelShortRateDynamics

A new dynamics object.

Tree(TimeGrid)

Builds a two-dimensional trinomial tree of the two state variables on a time grid.

public override Lattice Tree(TimeGrid grid)

Parameters

grid TimeGrid

The time grid.

Returns

Lattice

The tree, a TwoFactorModelShortRateTree.

Exceptions

ArgumentNullException

grid is null.