123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566 |
- #ifndef REGRESSIONALGORITHMINCLUDE
- #define REGRESSIONALGORITHMINCLUDE
- #include "core/vector/VVector.h"
- namespace OBJREC
- {
- #define ROADWORKS fthrow(NICE::Exception, "Persistent Interface: not yet implemented.");
- class RegressionAlgorithm : public NICE::Persistent
- {
- protected:
- public:
-
- RegressionAlgorithm();
-
- virtual ~RegressionAlgorithm();
-
- virtual void teach ( const NICE::VVector & x, const NICE::Vector & y ) = 0;
-
- virtual double predict ( const NICE::Vector & x ) = 0;
-
- virtual void restore ( std::istream & is, int format = 0 )
- {
- ROADWORKS
- };
- virtual void store ( std::ostream & os, int format = 0 ) const
- {
- ROADWORKS
- };
- virtual void clear ()
- {
- ROADWORKS
- };
-
- virtual RegressionAlgorithm *clone ( void ) const
- {
- fthrow ( NICE::Exception, "clone() not yet implemented!\n" );
- }
- };
- #undef ROADWORKS
- }
- #endif
|