12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- #ifndef REGRESSIONALGORITHMINCLUDE
- #define REGRESSIONALGORITHMINCLUDE
- #include "core/vector/VVector.h"
- namespace OBJREC {
-
- #define ROADWORKS fthrow(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(Exception, "clone() not yet implemented!\n");
- }
- };
- #undef ROADWORKS
- }
- #endif
|