aboutsummaryrefslogtreecommitdiffstats
path: root/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/main.cpp b/main.cpp
index 0728976..af495ca 100644
--- a/main.cpp
+++ b/main.cpp
@@ -29,18 +29,18 @@ int main()
rvar.push_back(gaussian_truncated(q[i-1], q[i],0,1,i));
}
stratified_sampling<gaussian_truncated> S(p,rvar);
- S.update(100);
- S.draw();
+ //S.update(100);
+ S.draw(100);
double x = 1.64*S.estimator().second;
cout<<"l'estimateur de la moyenne est :"<<S.estimator().first<<endl;
cout<<"Son intervalle de confiance à 95% est :"<<"["<<S.estimator().first-(x/10)<<" ,"<<S.estimator().first+(x/10)<<"]"<<endl;
- S.update(1000);
- S.draw();
+ //S.update(1000);
+ S.draw(1000);
x = 1,64*S.estimator().second;
cout<<"l'estimateur de la moyenne est :"<<S.estimator().first<<endl;
cout<<"Son intervalle de confiance à 95% est :"<<"["<<S.estimator().first-(x/sqrt(1100))<<" ,"<<S.estimator().first+(x/sqrt(1100))<<"]"<<endl;
- S.update(10000);
- S.draw();
+ //S.update(10000);
+ S.draw(10000);
x = 1,64*S.estimator().second;
cout<<"l'estimateur de la moyenne est :"<<S.estimator().first<<endl;
cout<<"Son intervalle de confiance à 95% est :"<<"["<<S.estimator().first-(x/sqrt(11100))<<" ,"<<S.estimator().first+(x/sqrt(11100))<<"]"<<endl;