diff options
| author | Bertrand <bertrand.horel@gmail.com> | 2016-02-09 13:38:19 +0000 |
|---|---|---|
| committer | Bertrand <bertrand.horel@gmail.com> | 2016-02-09 13:38:19 +0000 |
| commit | cebf7f9f95653a163511fc95aeb73fbe020e0b46 (patch) | |
| tree | 6d790649cfbb0dd9741bcbcfac367425d3bd54d3 /stratified_sampling.hpp | |
| parent | 8b3d7e86b167f31fa730e953a0de41c6bd978668 (diff) | |
| download | projet_C++-cebf7f9f95653a163511fc95aeb73fbe020e0b46.tar.gz | |
ajout fct print_mean
Diffstat (limited to 'stratified_sampling.hpp')
| -rw-r--r-- | stratified_sampling.hpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/stratified_sampling.hpp b/stratified_sampling.hpp index 21bfea8..ca96a3c 100644 --- a/stratified_sampling.hpp +++ b/stratified_sampling.hpp @@ -53,6 +53,7 @@ struct stratified_sampling { void draw(); vector<double> get_mean(); vector<double> get_var(); + void print_mean(); //double estimator(); private: vector<double> p; @@ -140,3 +141,12 @@ vector<double> stratified_sampling<L>::get_var() { return sigma2; }; +template <typename L> +void stratified_sampling<L>::print_mean() { + for(int i=0;i<10;i++){ + cout<<mean[i]<<"\t"; + } + cout<<endl; + } + + |
