00001 // This is gel/pop/pop_geometric_cost_function.h 00002 #ifndef pop_geometric_cost_function_h_ 00003 #define pop_geometric_cost_function_h_ 00004 #ifdef VCL_NEEDS_PRAGMA_INTERFACE 00005 #pragma interface 00006 #endif 00007 //: 00008 // \file 00009 // \brief compute cost between an observable and an observation 00010 // 00011 // \author 00012 // Peter Tu April 2003 00013 // General Electric 00014 // 00015 //------------------------------------------------------------------------------- 00016 00017 #include<pop/pop_geometric_object.h> 00018 00019 //: base class for geometric cost methods 00020 class pop_geometric_cost_function 00021 { 00022 public: 00023 //: constructor 00024 pop_geometric_cost_function(pop_geometric_object *observable, 00025 pop_geometric_object *observation); 00026 00027 //: destructor 00028 ~pop_geometric_cost_function(); 00029 00030 //: this is the cost between two objects 00031 00032 double cost(); 00033 00034 private: 00035 // the observable 00036 pop_geometric_object *observable_; 00037 00038 // the observation 00039 pop_geometric_object *observation_; 00040 }; 00041 00042 #endif // pop_geometric_cost_function_h_
1.5.1