123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- #ifndef KERNELLINEARCOMBINATIONINCLUDE
- #define KERNELLINEARCOMBINATIONINCLUDE
- #include "Kernel.h"
- #include "ParameterizedKernel.h"
- namespace OBJREC {
- class KernelLinearCombination : public ParameterizedKernel
- {
- protected:
- NICE::Vector alpha;
- bool exponential;
- public:
-
-
- KernelLinearCombination( uint num, bool exponential = false );
-
- KernelLinearCombination ( const KernelLinearCombination & src );
-
-
- virtual ~KernelLinearCombination();
-
- KernelLinearCombination *clone(void) const;
-
-
- double K (const NICE::Vector & x, const NICE::Vector & y) const;
- void updateKernelData ( KernelData *kernelData ) const;
- size_t getParameterSize () const { return alpha.size(); };
- void getKernelJacobi ( size_t parameter, const NICE::Vector & parameters, const KernelData *kernelData, NICE::Matrix & jacobiMatrix ) const;
- void setParameters( const NICE::Vector & newParameters );
-
- void getParameters( NICE::Vector & newParameters ) const;
- };
- }
- #endif
|