diff options
| author | Bertrand <bertrand.horel@gmail.com> | 2016-02-13 17:45:17 +0000 |
|---|---|---|
| committer | Bertrand <bertrand.horel@gmail.com> | 2016-02-13 17:45:17 +0000 |
| commit | 9f7ae751a0d6f7d27ad5f19d4fc697e722286b39 (patch) | |
| tree | 4b7e92a3d341c76b3714dc80addf01da028a96f4 /main.cpp | |
| parent | fc58c91b6a87c93ccb0a5fba025cf223716d0f5b (diff) | |
| download | projet_C++-9f7ae751a0d6f7d27ad5f19d4fc697e722286b39.tar.gz | |
Ajout de update dans la fonction draw
Diffstat (limited to 'main.cpp')
| -rw-r--r-- | main.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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; |
