00001 00002 #ifndef STDDEV_H_ 00003 #define STDDEV_H_ 00004 00035 class stddev 00036 { 00037 private: 00038 stddev( const stddev &rhs ); 00039 00040 double mean_; 00041 double calc_mean_( const double *v, const size_t N); 00042 public: 00043 stddev() { mean_ = 0;} 00044 ~stddev() {} 00045 00046 double mean() { return mean_; } 00048 double sd( const double *v, 00049 const size_t N ); 00050 00052 double sd( const double *v, 00053 const size_t N, 00054 const double mean ); 00055 }; 00056 00057 #endif