123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- #ifndef KERNELINCLUDE
- #define KERNELINCLUDE
- #include "core/vector/VVector.h"
- #include "KernelData.h"
-
- namespace OBJREC {
- class Kernel
- {
- protected:
- bool symmetric;
- public:
-
-
- Kernel( bool symmetric );
-
-
- virtual ~Kernel();
- virtual double K (const NICE::Vector & x, const NICE::Vector & y) const = 0;
- virtual void calcGramMatrix ( const NICE::VVector & vecSet, NICE::Matrix & G ) const;
- virtual void calcKernelData ( const NICE::VVector & vecSet, KernelData *kernelData ) const;
- void calcKernelVector ( const NICE::VVector & vecSet, const NICE::Vector & y, NICE::Vector & kstar ) const;
- virtual Kernel *clone(void) const;
-
- };
- }
- #endif
|