aboutsummaryrefslogtreecommitdiffstats
path: root/src/projet.cpp
diff options
context:
space:
mode:
authorBertrand <bertrand.horel@gmail.com>2016-04-12 17:05:23 +0000
committerBertrand <bertrand.horel@gmail.com>2016-04-12 17:05:23 +0000
commitbcafe5e41698c44b6aa77b8ef150f4224613c38f (patch)
tree0d2fcdd687970a7809f11c359c8c31aaf246c5ec /src/projet.cpp
parentbb87c9576a735fe9827db0d27d180b47f9884161 (diff)
downloadprojet_C++-bcafe5e41698c44b6aa77b8ef150f4224613c38f.tar.gz
rectification, renommage quasi_mean en monte_carlo, renommage quasi_option en quasi_mean qui est déplacée dans rqmc.hpp
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;
}