cascade.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 #ifndef __LEMGA_AGGREGATING_CASCADE_H__
00003 #define __LEMGA_AGGREGATING_CASCADE_H__
00004 
00011 #include <utility>
00012 #include "aggregating.h"
00013 
00014 namespace lemga {
00015 
00047 class Cascade : public Aggregating {
00048 protected:
00049     std::vector<REAL> upper_margin; 
00050     std::vector<REAL> lower_margin; 
00051 
00052 public:
00053     virtual Cascade* create () const = 0;
00054     virtual Cascade* clone () const = 0;
00055 
00057     virtual bool support_weighted_data () const { return true; }
00058     virtual REAL train () = 0;
00059     virtual Output operator() (const Input&) const;
00060 
00062     virtual REAL belief (const LearnModel&,
00063                          const Input&, const Output&) const;
00064 
00065 protected:
00066     virtual bool serialize (std::ostream&, ver_list&) const;
00067     virtual bool unserialize (std::istream&, ver_list&,
00068                               const id_t& = empty_id);
00069 };
00070 
00071 } // namespace lemga
00072 
00073 #ifdef  __CASCADE_H__
00074 #warning "This header file may conflict with another `cascade.h' file."
00075 #endif
00076 #define __CASCADE_H__
00077 #endif

Generated on Mon Jan 9 23:43:23 2006 for LEMGA by  doxygen 1.4.6