aboutsummaryrefslogtreecommitdiffstats
path: root/src/stratified_sampling.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/stratified_sampling.hpp')
-rw-r--r--src/stratified_sampling.hpp4
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];
}
};