Beruflich Dokumente
Kultur Dokumente
ConvergenceTable.cpp
MCStatistics.cpp
Parameters.cpp,
PayOff3.cpp,
PayOffBridge.cpp,
Random1.cpp,
SimpleMC7.cpp
Vanilla3.cpp
*/
#include "SimpleMC7.h"
#include<iostream>
using namespace std;
#include "Vanilla3.h"
#include "MCStatistics.h"
#include "ConvergenceTable.h"
int main()
{
double Expiry;
double Strike;
double Spot;
double Vol;
double r;
unsigned long NumberOfPaths;
ParametersConstant VolParam(Vol);
ParametersConstant rParam(r);
StatisticsMean gatherer;
ConvergenceTable gathererTwo(gatherer);
SimpleMonteCarlo5(theOption,
Spot,
VolParam,
rParam,
NumberOfPaths,
gathererTwo);
double tmp;
cin >> tmp;
return 0;
}
//
//
//
// ConvergenceTable.cpp
//
//
#include "ConvergenceTable.h"
ConvergenceTable::ConvergenceTable(const Wrapper<StatisticsMC>&
Inner_)
: Inner(Inner_)
{
StoppingPoint=2;
PathsDone=0;
}
if (PathsDone == StoppingPoint)
{
StoppingPoint*=2;
std::vector<std::vector<double> > thisResult(Inner-
>GetResultsSoFar());
return;
if (PathsDone*2 != StoppingPoint)
{
std::vector<std::vector<double> > thisResult(Inner-
>GetResultsSoFar());
#ifndef CONVERGENCE_TABLE_H
#define CONVERGENCE_TABLE_H
#include "MCStatistics.h"
#include "wrapper.h"
private:
Wrapper<StatisticsMC> Inner;
std::vector<std::vector<double> > ResultsSoFar;
unsigned long StoppingPoint;
unsigned long PathsDone;
};
#endif
//
//
//
// MCStatistics.cpp
//
//
#include "MCStatistics.h"
using namespace std;
StatisticsMean::StatisticsMean()
:
RunningSum(0.0), PathsDone(0UL)
{
}
Results[0].resize(1);
Results[0][0] = RunningSum / PathsDone;
return Results;
}
#ifndef STATISTICS_H
#define STATISTICS_H
#include <vector>
class StatisticsMC
{
public:
StatisticsMC(){}
private:
};
public:
StatisticsMean();
virtual void DumpOneResult(double result);
virtual std::vector<std::vector<double> > GetResultsSoFar() const;
virtual StatisticsMC* clone() const;
private:
double RunningSum;
unsigned long PathsDone;
};
#endif
//
//
//
// MinMax.h
//
//
// these should be <algorithm> but sometimes aren't.
#ifndef MINMAX_H
#define MINMAX_H
#include "Parameters.h"
Parameters::~Parameters()
{
delete InnerObjectPtr;
}
//
//
//
// Parameters.h
//
//
#ifndef PARAMETERS_H
#define PARAMETERS_H
class ParametersInner
{
public:
ParametersInner(){}
};
class Parameters
{
public:
private:
ParametersInner* InnerObjectPtr;
};
ParametersConstant(double constant);
private:
double Constant;
double ConstantSquare;
};
#endif
//
//
// PayOff3.cpp
//
//
#include "PayOff3.h"
#include "MinMax.h"
#ifndef PAYOFF3_H
#define PAYOFF3_H
class PayOff
{
public:
PayOff(){};
private:
};
PayOffCall(double Strike_);
private:
double Strike;
};
PayOffPut(double Strike_);
private:
double Strike;
};
#endif
//
//
// PayOffBridge.cpp
//
//
#include "PayOffBridge.h"
PayOffBridge::~PayOffBridge()
{
delete ThePayOffPtr;
}
return *this;
}
//
//
// PayOffBridge.h
//
//
#ifndef PAYOFFBRIDGE_H
#define PAYOFFBRIDGE_H
#include "PayOff3.h"
class PayOffBridge
{
public:
private:
PayOff* ThePayOffPtr;
};
#endif
//
// Random1.cpp
//
//
#include "Random1.h"
#include <cstdlib>
#include <cmath>
double GetOneGaussianBySummation()
{
double result=0;
result -= 6.0;
return result;
double GetOneGaussianByBoxMuller()
{
double result;
double x;
double y;
double sizeSquared;
do
{
x = 2.0*rand()/static_cast<double>(RAND_MAX)-1;
y = 2.0*rand()/static_cast<double>(RAND_MAX)-1;
sizeSquared = x*x + y*y;
}
while
( sizeSquared >= 1.0);
result = x*sqrt(-2*log(sizeSquared)/sizeSquared);
return result;
}
//
//
// Random1.h
//
//
#ifndef RANDOM1_H
#define RANDOM1_H
double GetOneGaussianBySummation();
double GetOneGaussianByBoxMuller();
#endif
//
//
//
// SimpleMC7.cpp
//
//
#include "SimpleMC7.h"
#include "Random1.h"
#include <cmath>
return;
}
//
//
//
// SimpleMC7.h
//
//
#ifndef SIMPLEMC7_H
#define SIMPLEMC7_H
#include "Vanilla3.h"
#include "Parameters.h"
#include "MCStatistics.h"
#endif
//
//
// Vanilla3.cpp
//
//
#include "Vanilla3.h"
#include "PayOffBridge.h"
class VanillaOption
{
public:
private:
PayOffBridge ThePayOff;
double Expiry;
};
#endif
//
//
// wrapper.h
//
//
#ifndef WRAPPER_H
#define WRAPPER_H
Wrapper()
{ DataPtr =0;}
~Wrapper()
{
if (DataPtr !=0)
delete DataPtr;
}
return *this;
}
T& operator*()
{
return *DataPtr;
}
T* operator->()
{
return DataPtr;
}
private:
T* DataPtr;
};
#endif
My Project
1 Hierarchical Index 1
2 Class Index 3
3 File Index 5
4 Class Documentation 7
4.1.2.1 ConvergenceTable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
4.1.3.1 clone . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
4.1.3.2 DumpOneResult . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
4.1.3.3 GetResultsSoFar . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
4.2.2.1 Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
4.2.2.2 Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
4.2.2.3 ∼Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
4.2.3.1 Integral . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
4.2.3.2 IntegralSquare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
4.2.3.3 Mean . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
4.2.3.4 operator= . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
4.2.3.5 RootMeanSquare . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
4.12.3.1 operator∗ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
4.12.3.2 operator∗ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
4.12.3.3 operator-> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
4.12.3.4 operator-> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
4.12.3.5 operator= . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
5 File Documentation 31
5.1 ConvergenceTable.cpp File Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
5.2 ConvergenceTable.h File Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
5.3 MCStatistics.cpp File Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
5.4 MCStatistics.h File Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
5.5 MinMax.h File Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
5.5.1 Function Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
5.5.1.1 max . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
5.5.1.2 min . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
5.6 Parameters.cpp File Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
5.7 Parameters.h File Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
5.8 PayOff3.cpp File Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
5.9 PayOff3.h File Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
5.10 PayOffBridge.cpp File Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
5.11 PayOffBridge.h File Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
5.12 Random1.cpp File Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
5.12.1 Function Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
5.12.1.1 GetOneGaussianByBoxMuller . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
5.12.1.2 GetOneGaussianBySummation . . . . . . . . . . . . . . . . . . . . . . . . . . 40
5.13 Random1.h File Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
5.13.1 Function Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
5.13.1.1 GetOneGaussianByBoxMuller . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
5.13.1.2 GetOneGaussianBySummation . . . . . . . . . . . . . . . . . . . . . . . . . . 41
5.14 SimpleMC7.cpp File Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
5.14.1 Function Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
5.14.1.1 SimpleMonteCarlo5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
5.15 SimpleMC7.h File Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
5.15.1 Function Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
5.15.1.1 SimpleMonteCarlo5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
5.16 StatsMain2.cpp File Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
5.16.1 Function Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
5.16.1.1 main . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
5.17 Vanilla3.cpp File Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
5.18 Vanilla3.h File Reference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 46
Hierarchical Index
Class Index
Here are the classes, structs, unions and interfaces with brief descriptions:
ConvergenceTable . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
ParametersConstant . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
ParametersInner . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
PayOff . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
PayOffBridge . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
PayOffCall . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
PayOffPut . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
StatisticsMC . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
StatisticsMean . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
VanillaOption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Wrapper< T > . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
4 Class Index
File Index
Class Documentation
#include <ConvergenceTable.h>
Inheritance diagram for ConvergenceTable:
StatisticsMC
ConvergenceTable
StatisticsMC
ConvergenceTable
ConvergenceTable::Convergence
ConvergenceTable::clone
Table
Implements StatisticsMC.
Definition at line 17 of file ConvergenceTable.cpp.
Here is the call graph for this function:
ConvergenceTable::Convergence
ConvergenceTable::clone
Table
Implements StatisticsMC.
Definition at line 22 of file ConvergenceTable.cpp.
StatisticsMC::DumpOneResult
ConvergenceTable::DumpOne
Result
StatisticsMC::GetResults
SoFar
Implements StatisticsMC.
Definition at line 43 of file ConvergenceTable.cpp.
Here is the call graph for this function:
ConvergenceTable::GetResults StatisticsMC::GetResults
SoFar SoFar
ConvergenceTable::GetResults
main
SoFar
The documentation for this class was generated from the following files:
• ConvergenceTable.h
• ConvergenceTable.cpp
#include <Parameters.h>
Parameters::Parameters ParametersInner::clone
Parameters::Parameters ParametersInner::clone
Parameters::Integral ParametersInner::Integral
Parameters::Mean
Parameters::Integral
SimpleMonteCarlo5 main
ParametersInner::Integral
Parameters::IntegralSquare
Square
Parameters::RootMeanSquare
Parameters::IntegralSquare
SimpleMonteCarlo5 main
Parameters::operator= ParametersInner::clone
ParametersInner::Integral
Parameters::RootMeanSquare Parameters::IntegralSquare
Square
The documentation for this class was generated from the following files:
• Parameters.h
• Parameters.cpp
#include <Parameters.h>
Inheritance diagram for ParametersConstant:
ParametersInner
ParametersConstant
ParametersInner
ParametersConstant
ParametersConstant ParametersConstant
::ParametersConstant ::clone
Implements ParametersInner.
Definition at line 70 of file Parameters.cpp.
Here is the call graph for this function:
ParametersConstant ParametersConstant
::clone ::ParametersConstant
Implements ParametersInner.
Definition at line 76 of file Parameters.cpp.
Implements ParametersInner.
Definition at line 81 of file Parameters.cpp.
The documentation for this class was generated from the following files:
• Parameters.h
• Parameters.cpp
#include <Parameters.h>
Inheritance diagram for ParametersInner:
ParametersInner
ParametersConstant
• ParametersInner ()
• virtual ParametersInner ∗ clone () const =0
• virtual double Integral (double time1, double time2) const =0
• virtual double IntegralSquare (double time1, double time2) const =0
• virtual ∼ParametersInner ()
Implemented in ParametersConstant.
Parameters::Parameters
ParametersInner::clone
Parameters::operator=
4.4.3.2 virtual double ParametersInner::Integral ( double time1, double time2 ) const [pure virtual]
Implemented in ParametersConstant.
Here is the caller graph for this function:
Parameters::Mean
ParametersInner::Integral Parameters::Integral
SimpleMonteCarlo5 main
4.4.3.3 virtual double ParametersInner::IntegralSquare ( double time1, double time2 ) const [pure virtual]
Implemented in ParametersConstant.
Here is the caller graph for this function:
Parameters::RootMeanSquare
ParametersInner::Integral
Parameters::IntegralSquare
Square
SimpleMonteCarlo5 main
The documentation for this class was generated from the following file:
• Parameters.h
#include <PayOff3.h>
PayOff
PayOffCall PayOffPut
• PayOff ()
• virtual ∼PayOff ()
PayOffBridge::PayOffBridge
PayOff::clone
PayOffBridge::operator=
• PayOff3.h
#include <PayOffBridge.h>
PayOffBridge::PayOffBridge PayOff::clone
PayOffBridge::PayOffBridge PayOff::clone
4.6.2.3 PayOffBridge::∼PayOffBridge ( )
PayOffBridge::operator= PayOff::clone
The documentation for this class was generated from the following files:
• PayOffBridge.h
• PayOffBridge.cpp
#include <PayOff3.h>
Inheritance diagram for PayOffCall:
PayOff
PayOffCall
PayOff
PayOffCall
PayOffCall::PayOffCall PayOffCall::clone
Implements PayOff.
Definition at line 19 of file PayOff3.cpp.
Here is the call graph for this function:
PayOffCall::clone PayOffCall::PayOffCall
Implements PayOff.
Definition at line 14 of file PayOff3.cpp.
PayOffCall::operator() max
The documentation for this class was generated from the following files:
• PayOff3.h
• PayOff3.cpp
#include <PayOff3.h>
Inheritance diagram for PayOffPut:
PayOff
PayOffPut
PayOff
PayOffPut
PayOffPut::PayOffPut PayOffPut::clone
Implements PayOff.
Definition at line 34 of file PayOff3.cpp.
Here is the call graph for this function:
PayOffPut::clone PayOffPut::PayOffPut
Implements PayOff.
Definition at line 25 of file PayOff3.cpp.
Here is the call graph for this function:
PayOffPut::operator() max
The documentation for this class was generated from the following files:
• PayOff3.h
• PayOff3.cpp
#include <MCStatistics.h>
Inheritance diagram for StatisticsMC:
StatisticsMC
ConvergenceTable StatisticsMean
• StatisticsMC ()
• virtual void DumpOneResult (double result)=0
• virtual std::vector
< std::vector< double > > GetResultsSoFar () const =0
• virtual StatisticsMC ∗ clone () const =0
• virtual ∼StatisticsMC ()
ConvergenceTable::DumpOne
Result
StatisticsMC::DumpOneResult
SimpleMonteCarlo5 main
ConvergenceTable::DumpOne
Result
StatisticsMC::GetResults
SoFar
ConvergenceTable::GetResults
main
SoFar
The documentation for this class was generated from the following file:
• MCStatistics.h
#include <MCStatistics.h>
Inheritance diagram for StatisticsMean:
StatisticsMC
StatisticsMean
StatisticsMC
StatisticsMean
• StatisticsMean ()
• virtual void DumpOneResult (double result)
• virtual std::vector
< std::vector< double > > GetResultsSoFar () const
• virtual StatisticsMC ∗ clone () const
4.10.2.1 StatisticsMean::StatisticsMean ( )
StatisticsMean::StatisticsMean StatisticsMean::clone
Implements StatisticsMC.
Definition at line 33 of file MCStatistics.cpp.
Here is the call graph for this function:
StatisticsMean::clone StatisticsMean::StatisticsMean
Implements StatisticsMC.
Definition at line 17 of file MCStatistics.cpp.
Implements StatisticsMC.
Definition at line 23 of file MCStatistics.cpp.
The documentation for this class was generated from the following files:
• MCStatistics.h
• MCStatistics.cpp
#include <Vanilla3.h>
The documentation for this class was generated from the following files:
• Vanilla3.h
• Vanilla3.cpp
#include <wrapper.h>
• Wrapper ()
• Wrapper (const T &inner)
• ∼Wrapper ()
• Wrapper (const Wrapper< T > &original)
• Wrapper & operator= (const Wrapper< T > &original)
• T & operator∗ ()
• const T & operator∗ () const
• const T ∗const operator-> () const
• T ∗ operator-> ()
4.12.2.4 template<class T> Wrapper< T >::Wrapper ( const Wrapper< T > & original ) [inline]
4.12.3.5 template<class T> Wrapper& Wrapper< T >::operator= ( const Wrapper< T > & original ) [inline]
• wrapper.h
File Documentation
#include "ConvergenceTable.h"
Include dependency graph for ConvergenceTable.cpp:
ConvergenceTable.cpp
ConvergenceTable.h
MCStatistics.h wrapper.h
vector
#include "MCStatistics.h"
#include "wrapper.h"
32 File Documentation
ConvergenceTable.h
MCStatistics.h wrapper.h
vector
This graph shows which files directly or indirectly include this file:
ConvergenceTable.h
ConvergenceTable.cpp StatsMain2.cpp
Classes
• class ConvergenceTable
#include "MCStatistics.h"
MCStatistics.cpp
MCStatistics.h
vector
#include <vector>
Include dependency graph for MCStatistics.h:
MCStatistics.h
vector
This graph shows which files directly or indirectly include this file:
MCStatistics.h
Classes
• class StatisticsMC
• class StatisticsMean
This graph shows which files directly or indirectly include this file:
MinMax.h
PayOff3.cpp
Functions
• template<class T >
const T & max (const T &a, const T &b)
• template<class T >
const T & min (const T &a, const T &b)
5.5.1.1 template<class T > const T& max ( const T & a, const T & b )
PayOffCall::operator()
max
PayOffPut::operator()
5.5.1.2 template<class T > const T& min ( const T & a, const T & b )
#include "Parameters.h"
Include dependency graph for Parameters.cpp:
Parameters.cpp
Parameters.h
This graph shows which files directly or indirectly include this file:
Parameters.h
Parameters.cpp SimpleMC7.h
SimpleMC7.cpp StatsMain2.cpp
Classes
• class ParametersInner
• class Parameters
• class ParametersConstant
#include "PayOff3.h"
#include "MinMax.h"
Include dependency graph for PayOff3.cpp:
PayOff3.cpp
PayOff3.h MinMax.h
This graph shows which files directly or indirectly include this file:
PayOff3.h
PayOff3.cpp PayOffBridge.h
PayOffBridge.cpp Vanilla3.h
SimpleMC7.h Vanilla3.cpp
SimpleMC7.cpp StatsMain2.cpp
Classes
• class PayOff
• class PayOffCall
• class PayOffPut
#include "PayOffBridge.h"
Include dependency graph for PayOffBridge.cpp:
PayOffBridge.cpp
PayOffBridge.h
PayOff3.h
#include "PayOff3.h"
Include dependency graph for PayOffBridge.h:
PayOffBridge.h
PayOff3.h
This graph shows which files directly or indirectly include this file:
PayOffBridge.h
PayOffBridge.cpp Vanilla3.h
SimpleMC7.h Vanilla3.cpp
SimpleMC7.cpp StatsMain2.cpp
Classes
• class PayOffBridge
#include "Random1.h"
#include <cstdlib>
#include <cmath>
Include dependency graph for Random1.cpp:
Random1.cpp
Functions
• double GetOneGaussianBySummation ()
• double GetOneGaussianByBoxMuller ()
This graph shows which files directly or indirectly include this file:
Random1.h
Random1.cpp SimpleMC7.cpp
Functions
• double GetOneGaussianBySummation ()
• double GetOneGaussianByBoxMuller ()
#include "SimpleMC7.h"
#include "Random1.h"
#include <cmath>
Include dependency graph for SimpleMC7.cpp:
SimpleMC7.cpp
PayOffBridge.h vector
PayOff3.h
Functions
• void SimpleMonteCarlo5 (const VanillaOption &TheOption, double Spot, const Parameters &Vol, const Pa-
rameters &r, unsigned long NumberOfPaths, StatisticsMC &gatherer)
5.14.1.1 void SimpleMonteCarlo5 ( const VanillaOption & TheOption, double Spot, const Parameters & Vol, const
Parameters & r, unsigned long NumberOfPaths, StatisticsMC & gatherer )
VanillaOption::GetExpiry
ParametersInner::Integral
Parameters::IntegralSquare Square
Parameters::Integral ParametersInner::Integral
SimpleMonteCarlo5
GetOneGaussianByBoxMuller
VanillaOption::OptionPayOff
StatisticsMC::DumpOneResult
SimpleMonteCarlo5 main
#include "Vanilla3.h"
#include "Parameters.h"
#include "MCStatistics.h"
SimpleMC7.h
PayOffBridge.h vector
PayOff3.h
This graph shows which files directly or indirectly include this file:
SimpleMC7.h
SimpleMC7.cpp StatsMain2.cpp
Functions
• void SimpleMonteCarlo5 (const VanillaOption &TheOption, double Spot, const Parameters &Vol, const Pa-
rameters &r, unsigned long NumberOfPaths, StatisticsMC &gatherer)
5.15.1.1 void SimpleMonteCarlo5 ( const VanillaOption & TheOption, double Spot, const Parameters & Vol, const
Parameters & r, unsigned long NumberOfPaths, StatisticsMC & gatherer )
VanillaOption::GetExpiry
ParametersInner::Integral
Parameters::IntegralSquare Square
Parameters::Integral ParametersInner::Integral
SimpleMonteCarlo5
GetOneGaussianByBoxMuller
VanillaOption::OptionPayOff
StatisticsMC::DumpOneResult
SimpleMonteCarlo5 main
#include "SimpleMC7.h"
#include <iostream>
#include "Vanilla3.h"
#include "MCStatistics.h"
#include "ConvergenceTable.h"
StatsMain2.cpp
PayOffBridge.h vector
PayOff3.h
Functions
• int main ()
VanillaOption::GetExpiry
ParametersInner::Integral
Parameters::IntegralSquare Square
Parameters::Integral ParametersInner::Integral
SimpleMonteCarlo5 GetOneGaussianByBoxMuller
main VanillaOption::OptionPayOff
ConvergenceTable::GetResults StatisticsMC::DumpOneResult
SoFar
StatisticsMC::GetResults
SoFar
#include "Vanilla3.h"
Vanilla3.cpp
Vanilla3.h
PayOffBridge.h
PayOff3.h
#include "PayOffBridge.h"
Include dependency graph for Vanilla3.h:
Vanilla3.h
PayOffBridge.h
PayOff3.h
This graph shows which files directly or indirectly include this file:
Vanilla3.h
SimpleMC7.h Vanilla3.cpp
SimpleMC7.cpp StatsMain2.cpp
Classes
• class VanillaOption
This graph shows which files directly or indirectly include this file:
wrapper.h
ConvergenceTable.h
ConvergenceTable.cpp StatsMain2.cpp
Classes