1 Star 0 Fork 0

云金杞/learn_cpp_series

Create your Gitee Account
Explore and code with more than 14 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
MonteCarloPricer.h 533 Bytes
Copy Edit Raw Blame History
云金杞 authored 2023-12-28 14:42 +08:00 . update 10.6.9
#pragma once
#include "stdafx.h"
#include "PathIndependentOption.h"
#include "KnockOutCallOption.h"
#include "BlackScholesModel.h"
#include "testing.h"
class MonteCarloPricer {
public:
/* Constructor */
MonteCarloPricer();
/* Number of scenarios */
int nScenarios;
/* Price a call option */
double price(const PathIndependentOption& option,
const BlackScholesModel& model);
double price(const KnockOutCallOption& option,
const BlackScholesModel& model);
};
void testMonteCarloPricer();
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/yunjinqi/learn_cpp_series.git
git@gitee.com:yunjinqi/learn_cpp_series.git
yunjinqi
learn_cpp_series
learn_cpp_series
master

Search