123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- #ifndef KCGPONECLASSINCLUDE
- #define KCGPONECLASSINCLUDE
- #include "vislearning/classifier/classifierbase/KernelClassifier.h"
- #include "vislearning/math/kernels/ParameterizedKernel.h"
- #include "vislearning/regression/regressionbase/RegressionAlgorithmKernel.h"
- #undef ROADWORKS
- #define ROADWORKS fthrow(NICE::Exception, "Persistent interface not implemented!");
- #define VARIANCE_DETECTION_MODE 1
- #define MEAN_DETECTION_MODE 2
- namespace OBJREC
- {
- class KCGPOneClass : public KernelClassifier
- {
- protected:
- RegressionAlgorithmKernel *regressionAlgorithm;
- NICE::Matrix InverseKernelMatrix;
- KernelData *kernelData;
- NICE::Vector y;
- int mode;
- bool computeInverse;
- double staticNoise;
- public:
-
- KCGPOneClass ( const NICE::Config *conf, Kernel *kernel = NULL, const std::string & section = "OneClassGP" );
-
- KCGPOneClass ( const KCGPOneClass & src );
-
- virtual ~KCGPOneClass();
-
- void teach ( KernelData *kernelData, const NICE::Vector & y );
-
- virtual ClassificationResult classifyKernel ( const NICE::Vector & kernelVector, double kernelSelf ) const;
-
- KCGPOneClass *clone() const;
- void restore ( std::istream&, int )
- {
- ROADWORKS
- };
- void store ( std::ostream&, int ) const
- {
- ROADWORKS
- };
- void clear()
- {
- ROADWORKS
- };
- };
- }
- #undef ROADWORKS
- #endif
|