core/vnl/vnl_definite_integral.h

Go to the documentation of this file.
00001 #ifndef VNL_DEFINITE_INTEGRAL_H_
00002 #define VNL_DEFINITE_INTEGRAL_H_
00003 //:
00004 // \file
00005 // \author Kongbin Kang at Brown
00006 // \date Jan 12, 2005
00007 // \brief the abstract 1D integrant function used for definite integral
00008 
00009 #include "vnl_integrant_fnct.h"
00010 
00011 class vnl_definite_integral
00012 {
00013   protected:
00014 
00015     static vnl_integrant_fnct *pfnct_;
00016     
00017   public:
00018 
00019     vnl_definite_integral() { pfnct_ = 0; }
00020 
00021     void set_fnct(vnl_integrant_fnct* f) { pfnct_ = f; }
00022 
00023 #if 0
00024     //: integration from a to b, in n steps
00025     virtual double integral(vnl_integrant_fnct *f, float a, float b, int n)=0;
00026 #endif 
00027 
00028     //: dector
00029     virtual ~vnl_definite_integral() { pfnct_ = 0; }
00030 };
00031 
00032 #endif

Generated on Sat Nov 22 05:06:20 2008 for core/vnl by  doxygen 1.5.1