@@ -140,15 +140,15 @@ void StabilisedGLLS::calculate(
140140 acc (x[i]);
141141 }
142142 xShift_[0 ] = -mean (acc);
143- Real tmp = variance (acc);
143+ Real tmp = boost::accumulators:: variance (acc);
144144 if (!QuantLib::close_enough (tmp, 0.0 ))
145145 xMultiplier_[0 ] = 1.0 / std::sqrt (tmp);
146146 accumulator_set<Real, stats<boost::accumulators::tag::mean, boost::accumulators::tag::variance> > acc2;
147147 for (Size i = 0 ; i < static_cast <Size>(y.end () - y.begin ()); ++i) {
148148 acc2 (y[i]);
149149 }
150150 yShift_ = -mean (acc2);
151- Real tmp2 = variance (acc2);
151+ Real tmp2 = boost::accumulators:: variance (acc2);
152152 if (!QuantLib::close_enough (tmp2, 0.0 ))
153153 yMultiplier_ = 1.0 / std::sqrt (tmp2);
154154 break ;
@@ -213,7 +213,7 @@ void StabilisedGLLS::calculate(
213213 }
214214 for (Size j = 0 ; j < acc.size (); ++j) {
215215 xShift_[j] = -mean (acc[j]);
216- Real tmp = variance (acc[j]);
216+ Real tmp = boost::accumulators:: variance (acc[j]);
217217 if (!QuantLib::close_enough (tmp, 0.0 ))
218218 xMultiplier_[j] = 1.0 / std::sqrt (tmp);
219219 }
@@ -222,7 +222,7 @@ void StabilisedGLLS::calculate(
222222 acc2 (y[i]);
223223 }
224224 yShift_ = -mean (acc2);
225- Real tmp2 = variance (acc2);
225+ Real tmp2 = boost::accumulators:: variance (acc2);
226226 if (!QuantLib::close_enough (tmp2, 0.0 ))
227227 yMultiplier_ = 1.0 / std::sqrt (tmp2);
228228 break ;
0 commit comments