Changeset 2560


Ignore:
Timestamp:
Sep 25, 2011, 12:13:42 AM (10 years ago)
Author:
Peter
Message:

prefer std::sqrt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/statistics/Averager.cc

    r2559 r2560  
    2727
    2828#include <cassert>
     29#include <cmath>
    2930#include <limits>
    3031
     
    9091  double Averager::standard_error(void) const
    9192  {
    92     return sqrt(variance()/n_);
     93    return std::sqrt(variance()/n_);
    9394  }
    9495
    9596  double Averager::std(void) const
    9697  {
    97     return sqrt(variance());
     98    return std::sqrt(variance());
    9899  }
    99100
    100101  double Averager::std(double m) const
    101102  {
    102     return sqrt(variance(m));
     103    return std::sqrt(variance(m));
    103104  }
    104105
Note: See TracChangeset for help on using the changeset viewer.