37 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14,
38 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28,
39 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42,
40 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56
45 1, 15, 29, 20, 10, 40, 1, 50, 3, 40, 3, 25, 23, 90,
46 1, 15, 29, 20, 10, 40, 1, 50, 3, 40, 3, 25, 23, 90,
47 1, 15, 29, 20, 10, 40, 1, 50, 3, 40, 3, 25, 23, 90,
48 1, 15, 29, 20, 10, 40, 1, 50, 3, 40, 3, 25, 23, 90
58 "[WhittakerSmoother::ctor()] Invalid value for lamda coefficient; valid range is [2, infinity)");
67 *
os_ <<
"Unsmoothed data (" << testY.size() <<
"):\t";
68 copy(testY.begin(), testY.end(), ostream_iterator<double>(*
os_,
"\t"));
73 vector<double> smoothedX, smoothedY;
74 smoother.
smooth(testX, testY, smoothedX, smoothedY);
78 *
os_ <<
"Smoothed data (" << smoothedY.size() <<
"):\t";
79 copy(smoothedY.begin(), smoothedY.end(), ostream_iterator<double>(*
os_,
"\t"));
90 int main(
int argc,
char* argv[])
96 if (argc>1 && !strcmp(argv[1],
"-v"))
os_ = &cout;
#define unit_assert_throws_what(x, exception, whatStr)
const double testArrayX[]
const double testArrayY[]
virtual void smooth(const std::vector< double > &x, const std::vector< double > &y, std::vector< double > &xSmoothed, std::vector< double > &ySmoothed)
smooth y values to existing vectors using Whittaker algorithm; note: in the case of sparse vectors...
#define TEST_PROLOG(argc, argv)
int main(int argc, char *argv[])