CloseTester.cxx

Go to the documentation of this file.
00001 
00002 
00003 #include "AtlfastUtils/CloseTester.h"
00004 namespace Atlfast{
00005   int CloseTester::go(){
00006     
00007     typedef int                                          Type;
00008     typedef std::vector<Type>                            Container;
00009     typedef Type                                         Dist;
00010     
00011     Container  v ;
00012     /*
00013       v.push_back(-1.5);
00014       v.push_back(2.5);
00015       v.push_back(6.5);
00016       v.push_back(7.5);
00017       v.push_back(8.566);
00018       v.push_back(15.5);
00019       v.push_back(16.1);
00020       v.push_back(21.1);
00021       Dist distance = 3.;
00022     */
00023     v.push_back(1);
00024     v.push_back(2);
00025     v.push_back(3);
00026     v.push_back(4);
00027     v.push_back(20);
00028     v.push_back(21);
00029     v.push_back(30);
00030     int distance = 3;
00031     
00032     
00033     cout<<"** Initial **"<<endl;
00034     PrintThem(v.begin(), v.end() );
00035     
00036     Container areClose
00037       = removeDistant<Close<Dist, Dist>, Container, Dist>(v, distance);
00038     
00039     cout<<"** areClose **"<<endl;
00040     PrintThem(areClose.begin(), areClose.end() );
00041     
00042     return 0;
00043   }
00044 }//namespace  
00045                               
00046   
00047 
00048 
00049 
00050 
00051 
00052 
00053 

Generated on Fri Sep 21 13:20:37 2007 for AtlfastUtils by  doxygen 1.5.1