Property | Type | Description | |
---|---|---|---|
alpha1 | IModelParameter | ||
sigma1 | IModelParameter |
Property | Type | Description | |
---|---|---|---|
A | double | ||
AlphaInt | double | ||
B | double | ||
ExpectedAverageRate | double | ||
OnDeserialized | void | ||
ZR | double |
Method | Description | |
---|---|---|
Bond ( IReadOnlyMatrixSlice dynamic, double dates, int i, double t, double T ) : double |
Calculates the value of a Bond under the Hull and White model.
|
|
ExpectedShortRate ( double t ) : double | ||
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.
|
|
GetZeroRateReference ( ) : string |
Gets the zero rate reference.
|
|
HW1 ( ) : System |
Initializes a new instance of the HW1 class with alpha 0.1, sigma 0.001 and an empty zeroRateReference.
|
|
HW1 ( double alpha, double sigma, double lambda, string zeroRateReference ) : System |
Initializes a new instance of the HW1 class given alpha, sigma, lambda and a zero rate reference.
|
|
HW1 ( double alpha, double sigma, string zeroRateReference ) : System |
Initializes a new instance of the HW1 class given alpha, sigma and a zero rate reference.
|
|
Parse ( IProject p_Context ) : bool |
Ensure the parameters are correct.
|
|
Populate ( IStochasticProcess stocProcess, EstimationResult estimate ) : void |
Populate editable fields from name and value vectors specific to the Heston extended process.
|
|
SetZeroRateReference ( string zr ) : void |
Associate the process to a zero rate defined in the Fairmat model (e.g. @zr1).
|
|
Setup ( double dates ) : void |
Called by Simulator after parse. Initializes here time-dependant but not state dependent variables.
|
|
Simulate ( double Dates, IReadOnlyMatrixSlice Noise, IMatrixSlice OutDynamic ) : void | ||
Transform ( double dates, IMatrixSlice outDynamic ) : void |
Handles the conversion, after the simulation, from y to the short rate r.
|
|
a ( int i, double x, double a ) : void |
This function defines the drift in the HW Markov process. The formula to calculate the A component is A = theta(t) - alpha * previous State.
|
|
ab ( int i, double x, double a, double b ) : void |
This function defines drift and the volatility in the HW Markov process. The formula to calculate the B component is A = theta(t) - alpha * previous State. B = sigma.
|
|
b ( int i, double x, double b ) : void |
This function defines the volatility in the HW Markov process. The formula to calculate the B component is B = sigma.
|
|
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 | |
---|---|---|
F ( double t, double dt ) : double |
Numerically calculates the instantaneous forward rate.
|
|
Ft ( double t, double dt ) : double |
First derivative w.r.t time of forward rate
|
|
alphaTFunc ( double t, double dt ) : double |
Calculates the value of alpha function at time t
|
|
theta ( double t, double dt ) : double |
Method | Description | |
---|---|---|
A ( double t, double T, double alpha, double sigma, System.Function zeroRateCurve ) : double |
Calculates the function A() to be used in the Bond() method.
|
|
AlphaInt ( double t, double T, double alpha, double sigma, System.Function zeroRateCurve ) : double |
Calculates the integral of alpha function to be used in the A() method.
|
|
B ( double T, double alpha ) : double |
Calculates the function B() to be used in the Bond() method.
|
|
ExpectedAverageRate ( double t ) : double | ||
OnDeserialized ( |
||
ZR ( double t ) : double |
Helper function to make functions easier to read. Just returns the value of the zero rate at position t.
|
public Bond ( IReadOnlyMatrixSlice dynamic, double dates, int i, double t, double T ) : 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. /// |
T | double | /// The maturity of the bond. /// |
return | double |
public ExpectedShortRate ( double t ) : double | ||
t | double | |
return | double |
public ExportObjects ( bool recursive ) : List |
||
recursive | bool | /// The parameter is not used. /// |
return | List |
protected F ( double t, double dt ) : double | ||
t | double | /// Time at which calculate the forward rate. /// |
dt | double | /// Interval to be used in the numerical derivative. /// |
return | double |
protected Ft ( double t, double dt ) : double | ||
t | double | |
dt | double | |
return | double |
public GetDeltaFactors ( ) : IModelParameter[] | ||
return | IModelParameter[] |
public GetVegaFactors ( ) : IModelParameter[] | ||
return | IModelParameter[] |
public HW1 ( double alpha, double sigma, double lambda, string zeroRateReference ) : System | ||
alpha | double | The rate of the mean reversion to be used to initialize HW. |
sigma | double | The standard deviation to be used to initialize HW. |
lambda | double | The market price of risk to be used to initialize HW. |
zeroRateReference | string | /// Reference to the zero rate to be used to initialize HW. /// |
return | System |
public HW1 ( double alpha, double sigma, string zeroRateReference ) : System | ||
alpha | double | The rate of the mean reversion to be used to initialize HW. |
sigma | double | The standard deviation to be used to initialize HW. |
zeroRateReference | string | /// Reference to the zero rate to be used to initialize HW. /// |
return | System |
public Parse ( IProject p_Context ) : bool | ||
p_Context | IProject | /// The underlying project. /// |
return | bool |
public Populate ( IStochasticProcess stocProcess, EstimationResult estimate ) : void | ||
stocProcess | IStochasticProcess | /// The stochastic process which is being referenced to. /// |
estimate | EstimationResult | /// The estimation result which contains values and names of parameters. /// It will be searched for S0, kappa, theta, sigma, V0 and rho. /// |
return | void |
public SetZeroRateReference ( string zr ) : void | ||
zr | string | /// The zero rate reference. /// |
return | void |
public Setup ( double dates ) : void | ||
dates | double | /// The dates at which the process realizations will be requested. /// |
return | void |
public Simulate ( double Dates, IReadOnlyMatrixSlice Noise, IMatrixSlice OutDynamic ) : void | ||
Dates | double | |
Noise | IReadOnlyMatrixSlice | |
OutDynamic | IMatrixSlice | |
return | void |
public Transform ( double dates, IMatrixSlice outDynamic ) : void | ||
dates | double | Simulation dates. |
outDynamic | IMatrixSlice | The input and output components of the transformation. |
return | void |
public a ( int i, double x, double a ) : void | ||
i | int | The time step of the simulation. |
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 time step of the simulation. |
x | double | The state vector at the previous state. |
a | double | The output state dependent drift. |
b | double | The output volatility. |
return | void |
protected alphaTFunc ( double t, double dt ) : double | ||
t | double | Time at which calculate alpha |
dt | double | |
return | double |
public b ( int i, double x, double b ) : void | ||
i | int | The parameter is not used. |
x | double | The parameter is not used. |
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. /// |
return | void |
protected theta ( double t, double dt ) : double | ||
t | double | |
dt | double | |
return | double |