00001 #ifndef pdf1d_calc_mean_var_h 00002 #define pdf1d_calc_mean_var_h 00003 //: 00004 // \file 00005 // \author Tim Cootes 00006 // \brief Calculate mean and variance of 1D data. 00007 00008 #include <vnl/vnl_vector.h> 00009 00010 //: Compute mean and variance of data 00011 void pdf1d_calc_mean_var(double& mean, double& var, 00012 const double* data, int n); 00013 00014 //: Compute mean and variance of data 00015 void pdf1d_calc_mean_var(double& mean, double& var, 00016 const vnl_vector<double>& d); 00017 00018 #endif // pdf1d_calc_mean_var_h