filfunctest.cpp

Go to the documentation of this file.
00001 #include <fstream>
00002 #include <WFunc.h>
00003 #include <FilterFunc.h>
00004 #include <miscfunc.h>
00005 #include <vector>
00006 
00007 using namespace std;
00008 int main()
00009   {
00010     const unsigned int size = 500;
00011     vector<double> input(size, 1.0);
00012     for (unsigned int i = 0; i < size; ++i)
00013       input.at(i) = sin(i/(10.0-0.013*i));
00014     ofstream tsfile("tsraw");
00015     for (unsigned int i = 0; i < size; ++i)
00016       tsfile << i << " " << input.at(i) << endl;
00017 
00018     transform(input.begin(), input.end(), input.begin(), SimpleBp(0.01,0.1));
00019     ofstream windowfile("tswin");
00020     for (unsigned int i = 0; i < size; ++i)
00021       windowfile << i << " " << input.at(i) << endl;
00022   }

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