aboutsummaryrefslogtreecommitdiffstats
path: root/src/projet.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/projet.cpp')
-rw-r--r--src/projet.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/projet.cpp b/src/projet.cpp
index 57f6b91..b4fa5f9 100644
--- a/src/projet.cpp
+++ b/src/projet.cpp
@@ -71,13 +71,13 @@ void exemple2_rqmc() {
std::vector<double> result(3);
- result = quasi_mean(100, quasi_option<asian_option, sobol> (N, d, A));
+ result = monte_carlo(100, quasi_mean<asian_option, sobol> (N, d, A));
for(int i =0; i<3; i++){
std::cout<<result[i]<<std::endl;
}
std::vector<double> result2(3);
- result2 = quasi_mean(100, quasi_option<asian_option, halton> (N, d, A));
+ result2 = monte_carlo(100, quasi_mean<asian_option, halton> (N, d, A));
for(int i =0; i<3; i++){
std::cout<<result2[i]<<std::endl;
}
@@ -91,7 +91,7 @@ void exemple1_rqmc(){
int N = 100;
first f; //comme quasi_gaussian retourne un vecteur, on doit composer avec f pour avoir le double QG()[0]
std::vector<double> result(3);
- result = quasi_mean (100,quasi_option<struct first, sobol> (N, 1, f));
+ result = monte_carlo (100,quasi_mean<struct first, sobol> (N, 1, f));
for(int i =0; i<3; i++){
std::cout<<result[i]<<std::endl;
}