57 if (
os_) *
os_ <<
"mean: " << stats.
mean() << endl;
65 covariance(0,0) = covariance(0,1) = covariance(1,0) = covariance(1,1) = 8/3.;
72 double rms0_good = sqrt(35./3);
73 double rms1_good = sqrt(56./3);
81 int main(
int argc,
char* argv[])
87 if (argc>1 && !strcmp(argv[1],
"-v"))
os_ = &cout;
88 if (
os_) *
os_ <<
"StatsTest\n";
std::vector< vector_type > data_type
matrix_type covariance() const
std::iterator_traits< InputIterator >::value_type mean(InputIterator begin, InputIterator end)
MEAN Trimmed arithmetic mean.
int main(int argc, char *argv[])
#define unit_assert_equal(x, y, epsilon)
#define unit_assert_vectors_equal(A, B, epsilon)
boost::numeric::ublas::vector< double > vector_type
boost::numeric::ublas::matrix< double > matrix_type
#define TEST_PROLOG(argc, argv)
#define unit_assert_matrices_equal(A, B, epsilon)
matrix_type meanOuterProduct() const