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