testresample.cpp

Go to the documentation of this file.
00001 #include <iostream>
00002 #include <algorithm>
00003 #include "TimeSeriesComponent.h"
00004 
00005 int main()
00006 {
00007         const double olddt = 1;
00008         const double newdt = 2.0;
00009         const size_t samples = 100;
00010         
00011         TimeSeriesComponent TestData;
00012         for (size_t i = 0; i < samples; ++i)
00013                 TestData.GetData().push_back( sin( 0.2 * i));
00014         TestData.SetDt(olddt);
00015         TestData.Resample(newdt);
00016         std::copy(TestData.GetData().begin(),TestData.GetData().end(),std::ostream_iterator<double>(std::cout,"\n"));
00017         
00018 }

Generated on Mon Sep 15 12:54:34 2008 for GPLIB++ by  doxygen 1.5.5