36 std::vector<double> data;
38 std::vector<double>
y;
39 std::transform(data.begin(), data.end(), std::back_inserter(
y),
static_cast<double(*)(
double)
>(sin) );
41 std::vector<double> filt3(21,1./21.);
42 double sumfilt = std::accumulate(filt3.begin(), filt3.end(), 0.0 );
45 std::vector<double> result;
59 result.resize(
y.size());
75 std::vector<int> tmp, res;
78 res.resize(std::distance(res.begin(),it));
79 double ref[] = { 4, 5, 1, 2, 3, 4 ,5, 1, 2};
84 bool iseq = std::equal(res.begin(),res.end(),ref);
88 res.resize(std::distance(res.begin(),it));
90 double ref2[] = {2, 1, 1, 2, 3, 4, 5, 5, 4};
91 iseq = std::equal(res.begin(),res.end(),ref2);
98 int main(
int argc,
char **argv) {