#include <PayOff.h>
Public Member Functions | |
PayOff (Real Strike_) | |
Default constructor: set Strike. | |
PayOff (void) | |
void constructor | |
void | SetStrike (Real Strike_) |
virtual Real | operator() (Real Spot) const |
Nice operator for european call options only. | |
virtual | ~PayOff () |
virtual Real | Call (Real Fwd) |
Return the payoff of a call. | |
virtual Real | Put (Real Fwd) |
Return the payoff of a put. | |
virtual Real | AsianCall (valarray< Real > Path, LongNatural nDates) |
Return the payoff of an asian call. | |
virtual Real | AsianPut (valarray< Real > Path, LongNatural nDates) |
Return the payoff of an asian put. | |
virtual Real | RevLookbackCall (valarray< Real > Path, LongNatural nDates) |
Return the payoff of a look back call. | |
virtual Real | RevLookbackPut (valarray< Real > Path, LongNatural nDates) |
Return the payoff of a look back put. | |
virtual Real | BarrierCall (valarray< Real > Path, LongNatural nDates) |
Return the payoff of a barrier call. | |
virtual Real | BarrierPut (valarray< Real > Path, LongNatural nDates) |
Return the payoff of a barrier put. | |
virtual Real | FlooredCliquet (Real Spot, Real Fwd) |
Return the payoff of a floor. | |
virtual Real | CappedCliquet (Real Spot, Real Fwd) |
Return the payoff of a cap. | |
virtual Real | Rainbow2SpreadOptionMax (Real Fwd1, Real Fwd2, Real W1, Real W2, Real Mult) |
virtual Real | Rainbow2AssetsBasketMax (Real Fwd1, Real Fwd2, Real W1, Real W2, Real Mult) |
virtual Real | RainbowBestOf2AssetsCash (Real Fwd1, Real Fwd2, Real W1, Real W2) |
virtual Real | RainbowWorstOf2AssetsCash (Real Fwd1, Real Fwd2, Real W1, Real W2) |
virtual Real | RainbowMax2AssetsCall (Real Fwd1, Real Fwd2, Real W1, Real W2, Real Mult) |
virtual Real | RainbowMin2AssetsCall (Real Fwd1, Real Fwd2, Real W1, Real W2, Real Mult) |
virtual Real | RainbowMax2AssetsPut (Real Fwd1, Real Fwd2, Real W1, Real W2, Real Mult) |
virtual Real | RainbowMin2AssetsPut (Real Fwd1, Real Fwd2, Real W1, Real W2, Real Mult) |
virtual Real | Convertible (Real Fwd, Real ConversionRatio, Real BondPrice, Real CallPrice=TN_INFINITY, Real PutPrice=0) |
Private Attributes | |
Real | Strike |
|
Default constructor: set Strike.
Definition at line 5 of file PayOff.cpp. References Real. |
|
void constructor
Definition at line 9 of file PayOff.cpp. |
|
|
|
Return the payoff of an asian call.
Definition at line 34 of file PayOff.cpp. References Average(), LongNatural, Real, and Strike. Referenced by MCEngine::RunEngineAsianCall(). |
|
Return the payoff of an asian put.
Definition at line 39 of file PayOff.cpp. References Average(), LongNatural, Real, and Strike. Referenced by MCEngine::RunEngineAsianPut(). |
|
Return the payoff of a barrier call.
Definition at line 54 of file PayOff.cpp. References LongNatural, Real, and Strike. Referenced by MCEngine::RunEngineBarrierCall(). |
|
Return the payoff of a barrier put.
Definition at line 62 of file PayOff.cpp. References LongNatural, Real, and Strike. Referenced by MCEngine::RunEngineBarrierPut(). |
|
Return the payoff of a call.
Definition at line 24 of file PayOff.cpp. Referenced by MCEngine::RunEngineCall(), and binomialTree::runEngineCall(). |
|
Return the payoff of a cap.
Definition at line 77 of file PayOff.cpp. Referenced by MCEngine::RunEngineCappedCliquet(). |
|
Definition at line 124 of file PayOff.cpp. References Real. Referenced by binomialTree::runEngineConvertibleBond(). |
|
Return the payoff of a floor.
Definition at line 70 of file PayOff.cpp. Referenced by MCEngine::RunEngineFlooredCliquet(). |
|
Nice operator for european call options only.
Definition at line 19 of file PayOff.cpp. |
|
Return the payoff of a put.
Definition at line 29 of file PayOff.cpp. Referenced by MCEngine::RunEnginePut(). |
|
Definition at line 89 of file PayOff.cpp. Referenced by MCEngine::RunEngineRainbow2AssetsBasketMax(). |
|
Definition at line 84 of file PayOff.cpp. Referenced by MCEngine::RunEngineRainbow2SpreadOptionMax(). |
|
Definition at line 94 of file PayOff.cpp. Referenced by MCEngine::RunEngineRainbowBestOf2AssetsCash(). |
|
Definition at line 104 of file PayOff.cpp. Referenced by MCEngine::RunEngineRainbowMax2AssetsCall(). |
|
Definition at line 114 of file PayOff.cpp. Referenced by MCEngine::RunEngineRainbowMax2AssetsPut(). |
|
Definition at line 109 of file PayOff.cpp. Referenced by MCEngine::RunEngineRainbowMin2AssetsCall(). |
|
Definition at line 119 of file PayOff.cpp. Referenced by MCEngine::RunEngineRainbowMin2AssetsPut(). |
|
Definition at line 99 of file PayOff.cpp. Referenced by MCEngine::RunEngineRainbowWorstOf2AssetsCash(). |
|
Return the payoff of a look back call.
Definition at line 44 of file PayOff.cpp. References LongNatural, Maximize(), Real, and Strike. Referenced by MCEngine::RunEngineRevLookbackCall(). |
|
Return the payoff of a look back put.
Definition at line 49 of file PayOff.cpp. References LongNatural, Maximize(), Real, and Strike. Referenced by MCEngine::RunEngineRevLookbackPut(). |
|
Definition at line 13 of file PayOff.cpp. Referenced by RainbowOption::instanciateMCVariables(), and RainbowOption::RainbowOption(). |
|
Definition at line 88 of file PayOff.h. Referenced by AsianCall(), AsianPut(), BarrierCall(), BarrierPut(), Call(), CappedCliquet(), FlooredCliquet(), operator()(), Put(), Rainbow2AssetsBasketMax(), Rainbow2SpreadOptionMax(), RainbowBestOf2AssetsCash(), RainbowMax2AssetsCall(), RainbowMax2AssetsPut(), RainbowMin2AssetsCall(), RainbowMin2AssetsPut(), RainbowWorstOf2AssetsCash(), RevLookbackCall(), RevLookbackPut(), and SetStrike(). |