123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122 |
- #ifndef _NICE_GENERALIZEDINTERSECTIONKERNELFUNCTION
- #define _NICE_GENERALIZEDINTERSECTIONKERNELFUNCTION
- #include <iostream>
- #include <core/vector/MatrixT.h>
- #include <gp-hik-core/FeatureMatrixT.h>
- namespace NICE {
-
- template<class T> class GeneralizedIntersectionKernelFunction
- {
- protected:
-
- double exponent;
- public:
-
-
- GeneralizedIntersectionKernelFunction();
-
-
- GeneralizedIntersectionKernelFunction(const double & _exponent);
-
-
- ~GeneralizedIntersectionKernelFunction();
-
-
- void set_exponent(const double & _exponent);
-
-
- double get_exponent();
-
- double measureDistance ( const std::vector<T> & a, const std::vector<T> & b );
-
-
- NICE::Matrix computeKernelMatrix ( const std::vector<std::vector<T> > & X );
-
-
- NICE::Matrix computeKernelMatrix ( const std::vector<std::vector<T> > & X , const double & noise);
-
-
- NICE::Matrix computeKernelMatrix ( const NICE::FeatureMatrixT<T> & X , const double & noise);
-
-
- std::vector<double> computeKernelVector ( const std::vector<std::vector<T> > & X , const std::vector<T> & xstar);
-
-
- void sayYourName();
- };
-
- typedef GeneralizedIntersectionKernelFunction<double> GeneralizedIntersectionKernelFunctionDouble;
- }
- #ifdef __GNUC__
- #include "gp-hik-core/kernels/GeneralizedIntersectionKernelFunction.tcc"
- #endif
- #endif
|