Property | Type | Description | |
---|---|---|---|
k | IModelParameter | ||
r0 | IModelParameter | ||
sigma | IModelParameter | ||
theta | IModelParameter |
Method | Description | |
---|---|---|
Bond ( IReadOnlyMatrixSlice dynamic, double dates, int i, double t, double s ) : double |
Calculates the value of a Bond under the Cox-Ingersoll-Ross model.
|
|
CIR ( ) : System |
Default constructor, sets all the values to a default of 0.001.
|
|
ExportObjects ( bool recursive ) : List |
Creates a list of all the sub-objects that can be edited.
|
|
GetDeltaFactors ( ) : IModelParameter[] |
Gets the factors for Delta Greek derivative.
|
|
GetVegaFactors ( ) : IModelParameter[] |
Gets the factors for Vega Greek derivative.
|
|
Parse ( IProject context ) : bool |
Ensure the parameters are correct.
|
|
Populate ( IStochasticProcess container, EstimationResult estimate ) : void |
Populate editable fields from name and value vectors specific to the CIR process.
|
|
Setup ( double dates ) : void |
Called by Simulator after parse. Calculates the variables d and nu for faster execution.
|
|
a ( int i, double x, double a ) : void |
This function defines the drift in the Cox-Ingersoll-Ross Markov process. The formula to calculate the A component is A = k * (theta - max(previous state, 0)).
|
|
ab ( int i, double x, double a, double b ) : void |
This function calculates the drift and the volatility in the Cox-Ingersoll-Ross Markov process. as A = k * (theta - max(previous state, 0)). B = sigma * sqrt(max(previous state, 0)).
|
|
b ( int i, double x, double b ) : void |
This function defines the volatility in the Cox-Ingersoll-Ross Markov process. The formula to calculate the B component is B = sigma * sqrt(max(previous state, 0)).
|
|
isLog ( bool &isLog ) : void |
Sets the passed array with a Boolean stating if the process must be simulated as a log-normal process.
|
Method | Description | |
---|---|---|
SetParametersValue ( ) : void |
Prepares the serialized model parameters with the provided values.
|
public Bond ( IReadOnlyMatrixSlice dynamic, double dates, int i, double t, double s ) : double | ||
dynamic | IReadOnlyMatrixSlice | /// The simulated process. /// |
dates | double | /// The vector of reference dates. /// |
i | int | /// The index at which the state variable must be sampled. /// |
t | double | /// The date in years/fractions at at which the state variable must be sampled. /// |
s | double | /// The maturity of the bond. /// |
return | double |
public ExportObjects ( bool recursive ) : List |
||
recursive | bool | /// The parameter is not used. /// |
return | List |
public GetDeltaFactors ( ) : IModelParameter[] | ||
return | IModelParameter[] |
public GetVegaFactors ( ) : IModelParameter[] | ||
return | IModelParameter[] |
public Parse ( IProject context ) : bool | ||
context | IProject | /// The underlying project. /// |
return | bool |
public Populate ( IStochasticProcess container, EstimationResult estimate ) : void | ||
container | IStochasticProcess | /// The stochastic process which is being referenced to. /// |
estimate | EstimationResult | /// The estimation result which contains values and names of parameters. /// |
return | void |
public Setup ( double dates ) : void | ||
dates | double | The parameter is not used. |
return | void |
public a ( int i, double x, double a ) : void | ||
i | int | The parameter is not used. |
x | double | The state vector at the previous state. |
a | double | The output of the function. |
return | void |
public ab ( int i, double x, double a, double b ) : void | ||
i | int | The parameter is not used. |
x | double | The state vector at the previous state. |
a | double | |
b | double | The output of the function. |
return | void |
public b ( int i, double x, double b ) : void | ||
i | int | The parameter is not used. |
x | double | The state vector at the previous state. |
b | double | The output of the function. |
return | void |
public isLog ( bool &isLog ) : void | ||
isLog | bool | /// A reference to the array to be set with the required information. /// The array contains a single member set to false as this simulation /// is not log-normal. /// |
return | void |