diff options
| author | Bertrand <bertrand.horel@gmail.com> | 2016-02-26 14:48:54 +0000 |
|---|---|---|
| committer | Bertrand <bertrand.horel@gmail.com> | 2016-02-26 14:48:54 +0000 |
| commit | 4909d262ba578dc71b7431bd3f3c2ef9b3132384 (patch) | |
| tree | a19a74c8a6dff8851802667b9b550c87b99331cf /src/stratified_sampling.hpp | |
| parent | d637151c4acae4a06ffef927bf7ececd77d67a44 (diff) | |
| download | projet_C++-4909d262ba578dc71b7431bd3f3c2ef9b3132384.tar.gz | |
debbugage de main
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 7573ef2..ed53b6d 100644 --- a/src/stratified_sampling.hpp +++ b/src/stratified_sampling.hpp @@ -192,8 +192,8 @@ pair<double,double> stratified_sampling<L>::estimator() const { struct f_mu : public std::unary_function<std::vector<double>, double> { f_mu(std::vector<double> mu, asian_option A) : mu(mu), A(A){ - double norm_mu = 0; - for(int i=0; i<16; i++) { + norm_mu = 0; + for(unsigned int i=0; i<mu.size(); i++) { norm_mu += mu[i]*mu[i]; } }; |
