Class ExtendedCoxRossRubinstein
- Namespace
- NanoQL.Experimental
- Assembly
- NanoQL.dll
The time-dependent Cox-Ross-Rubinstein binomial tree: equal jumps of one standard deviation of a step at the step's
time, the probabilities carrying the drift: QuantLib's ExtendedCoxRossRubinstein.
[Experimental("NQL0001")]
public sealed class ExtendedCoxRossRubinstein : ExtendedEqualJumpsBinomialTree<ExtendedCoxRossRubinstein>, IBinomialTree<ExtendedCoxRossRubinstein>
- Inheritance
-
ExtendedCoxRossRubinstein
- Implements
- Inherited Members
Remarks
Immutable; exact on constant parameters (ExtendedBinomialTree<T>). The constructor checks the up probability at time 0 only, as QuantLib's.
Constructors
ExtendedCoxRossRubinstein(StochasticProcess1D, double, int, double)
Initializes a new instance of the ExtendedCoxRossRubinstein class.
public ExtendedCoxRossRubinstein(StochasticProcess1D process, double end, int steps, double strike)
Parameters
processStochasticProcess1DThe process.
enddoubleThe tree's last time.
stepsintThe number of steps.
strikedoubleThe strike, which this tree doesn't read.
Exceptions
- ArgumentNullException
processis null.- ArgumentOutOfRangeException
stepsis negative.- NanoQLException
The up probability at time 0 is outside [0, 1].
Methods
DxStep(double)
The move at a step's time, in the logarithm of the underlying.
protected override double DxStep(double stepTime)
Parameters
stepTimedoubleThe step's time.
Returns
- double
The move.
ProbUp(double)
The probability of an up move at a step's time.
protected override double ProbUp(double stepTime)
Parameters
stepTimedoubleThe step's time.
Returns
- double
The probability.
Explicit Interface Implementations
Create(StochasticProcess1D, double, int, double)
Builds the tree of a process from time 0 to end.
static ExtendedCoxRossRubinstein Create(StochasticProcess1D process, double end, int steps, double strike)
Parameters
processStochasticProcess1DThe process.
enddoubleThe tree's last time.
stepsintThe number of steps asked for; a tree may build on another (its Columns less one).
strikedoubleThe strike, which some trees center on.
Returns
- ExtendedCoxRossRubinstein
The tree.