diff options
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; + } + + |
