diff options
| author | Guillaume Horel <guillaume.horel@gmail.com> | 2016-04-28 20:49:55 -0400 |
|---|---|---|
| committer | Guillaume Horel <guillaume.horel@gmail.com> | 2016-04-28 20:49:55 -0400 |
| commit | 8d1cc85eba46cb1e1ebaa4986312562b893734b8 (patch) | |
| tree | c34180702d388b96ce5210cf1c089ff22742a682 /src/stratified_sampling.hpp | |
| parent | 1428c05e8057fb41cf05b1442c232c845a8363c6 (diff) | |
| download | projet_C++-8d1cc85eba46cb1e1ebaa4986312562b893734b8.tar.gz | |
try to be more generic
Diffstat (limited to 'src/stratified_sampling.hpp')
| -rw-r--r-- | src/stratified_sampling.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stratified_sampling.hpp b/src/stratified_sampling.hpp index 9175f75..25eef80 100644 --- a/src/stratified_sampling.hpp +++ b/src/stratified_sampling.hpp @@ -48,7 +48,7 @@ struct multi_gaussian_truncated : public var_alea<std::vector<double> > } return X; } - + void reseed() {}; private: double a, b; uniform V; @@ -124,7 +124,7 @@ void stratified_sampling<L>::update(int Nk) { template <typename L> void stratified_sampling<L>::draw(int N) { - update(N); + update(N); double m, s, oldmean; for(int i=0;i<I;i++){ m=0; |
