Class TwoFactorModel
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
nArgumentsintThe number of arguments.
Exceptions
- ArgumentOutOfRangeException
nArgumentsis 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
gridTimeGridThe time grid.
Returns
- Lattice
The tree, a TwoFactorModelShortRateTree.
Exceptions
- ArgumentNullException
gridis null.