contrib/rpl/rgrl/rgrl_weighter_unit.h
Go to the documentation of this file.
00001 #ifndef rgrl_weighter_unit_h_
00002 #define rgrl_weighter_unit_h_
00003 
00004 //:
00005 // \file
00006 // \author Amitha Perera
00007 // \date   Feb 2003
00008 
00009 #include "rgrl_weighter.h"
00010 
00011 //: Assigns unit weight to everything
00012 //
00013 // This is useful for unweighted estimation problems.
00014 //
00015 class rgrl_weighter_unit
00016   : public rgrl_weighter
00017 {
00018 public:
00019   //:
00020   rgrl_weighter_unit();
00021 
00022   //: Assign unit weights to each match
00023   //
00024   // The weights will be stored in the match_set structure.
00025   //
00026   virtual
00027   void compute_weights( rgrl_scale const&     scales,
00028                         rgrl_match_set&       match_set ) const;
00029 
00030   // Defines type-related functions
00031   rgrl_type_macro( rgrl_weighter_unit, rgrl_weighter);
00032 
00033 };
00034 
00035 #endif // rgrl_weighter_unit_h_