MT Tools/1DMT/testrecobjective.cpp

Go to the documentation of this file.
00001 #include <iostream>
00002 #include "C1DRecObjective.h"
00003 #include "VecMat.h"
00004 #include <vector>
00005 
00006 int main()
00007 {
00008         const int tries = 200;
00009         C1DRecObjective RecObjective;
00010         CSacDataComp InputData;
00011         gplib::rvec model(6);
00012         InputData.GetData("test.rec");
00013         RecObjective.starttime = 0;
00014         RecObjective.endtime = 10;
00015         RecObjective.errorlevel = 0.1;
00016         RecObjective.RecData = &InputData;
00017         RecObjective.SynthRec.slowness = 0.07;
00018         RecObjective.SynthRec.omega = 4;
00019         RecObjective.SynthRec.sigma = 0;
00020         RecObjective.SynthRec.shift = 0;
00021         RecObjective.SynthRec.c = 0.001;
00022         
00023         std::vector<C1DRecObjective*> ObjVector;
00024         ObjVector.assign(tries,&RecObjective);
00025         for (int i = 0; i < model.size(); ++i)
00026                 model(i) = i;
00027         for (int i =0; i < tries; ++i)
00028                 RecObjective.CalcPerformance(model);
00029         for (int i = 0; i < tries; ++i)
00030                 ObjVector.at(i)->CalcPerformance(model);
00031 }

Generated on Thu Nov 22 13:58:27 2007 for GPLIB++ by  doxygen 1.5.1