#include <GaussianProcess.h>
Public Member Functions | |
GaussianProcess (const valarray< LongInteger > schedule, const LongNatural &nDates, const Real &initialRate, const valarray< Real > drift, const Real &meanReversionSpeed, Real &vol) | |
Default constructor. | |
GaussianProcess (const valarray< LongInteger > schedule, const LongNatural &nDates, const Real &initialRate, const valarray< Real > drift, const Real &meanReversionSpeed, volsurface *vol, Real strike) | |
GaussianProcess (void) | |
~GaussianProcess () | |
valarray< Real > | BuildPath (valarray< Real > gaussianShocks) |
Build the Path according to given gaussian shocks. | |
Real | BuildTerminalPoint (Real gaussianShock) |
For a 1D, only one termial Point (non path dependant). | |
void | GetStepIncrements (valarray< Real > stepIncrements) |
Return Step Increments. | |
Private Attributes | |
valarray< LongInteger > | m_vDates |
valarray< Real > | m_vDrift |
valarray< Real > | m_vStepSize |
Real | m_dbMeanReversionSpeed |
Real | m_dbVol |
volsurface * | _vol |
Real | _strike |
Real | m_dbInitialRate |
LongNatural | m_nDates |
|
Default constructor.
Definition at line 7 of file GaussianProcess.cpp. References LongNatural, m_dbInitialRate, m_dbMeanReversionSpeed, m_dbVol, m_vDates, m_vDrift, m_vStepSize, Natural, and Real. |
|
Definition at line 28 of file GaussianProcess.cpp. References _strike, LongNatural, m_dbInitialRate, m_dbMeanReversionSpeed, m_dbVol, m_vDates, m_vDrift, m_vStepSize, Natural, and Real. |
|
Definition at line 52 of file GaussianProcess.cpp. |
|
Definition at line 56 of file GaussianProcess.cpp. |
|
Build the Path according to given gaussian shocks.
Definition at line 60 of file GaussianProcess.cpp. References _strike, LongNatural, m_dbInitialRate, m_dbMeanReversionSpeed, m_dbVol, m_vDates, m_vDrift, Real, and volsurface::volatility(). Referenced by MCEngine::RunEngineAsianCall(), MCEngine::RunEngineAsianPut(), MCEngine::RunEngineBarrierCall(), MCEngine::RunEngineBarrierPut(), MCEngine::RunEngineCall(), MCEngine::RunEngineCappedCliquet(), MCEngine::RunEngineFlooredCliquet(), MCEngine::RunEnginePut(), MCEngine::RunEngineRevLookbackCall(), and MCEngine::RunEngineRevLookbackPut(). |
|
For a 1D, only one termial Point (non path dependant).
Definition at line 86 of file GaussianProcess.cpp. References m_dbInitialRate, m_dbVol, m_vDates, m_vDrift, and Real. |
|
Return Step Increments.
Definition at line 95 of file GaussianProcess.cpp. References LongNatural, and m_vStepSize. Referenced by mainmc(). |
|
Definition at line 50 of file GaussianProcess.h. Referenced by BuildPath(), and GaussianProcess(). |
|
Definition at line 49 of file GaussianProcess.h. |
|
Definition at line 51 of file GaussianProcess.h. Referenced by BuildPath(), BuildTerminalPoint(), and GaussianProcess(). |
|
Definition at line 47 of file GaussianProcess.h. Referenced by BuildPath(), and GaussianProcess(). |
|
Definition at line 48 of file GaussianProcess.h. Referenced by BuildPath(), BuildTerminalPoint(), and GaussianProcess(). |
|
Definition at line 52 of file GaussianProcess.h. |
|
Definition at line 43 of file GaussianProcess.h. Referenced by BuildPath(), BuildTerminalPoint(), and GaussianProcess(). |
|
Definition at line 44 of file GaussianProcess.h. Referenced by BuildPath(), BuildTerminalPoint(), and GaussianProcess(). |
|
Definition at line 46 of file GaussianProcess.h. Referenced by GaussianProcess(), and GetStepIncrements(). |