123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- #ifndef _NICE_INTERSECTIONKERNELFUNCTION
- #define _NICE_INTERSECTIONKERNELFUNCTION
- #include <iostream>
- #include <gp-hik-core/FeatureMatrixT.h>
- #include <core/vector/SparseVectorT.h>
- namespace NICE {
-
-
-
- template<class T> class IntersectionKernelFunction
- {
- protected:
- public:
-
-
- IntersectionKernelFunction();
-
-
- ~IntersectionKernelFunction();
-
- double measureDistance ( const std::vector<T> & a, const std::vector<T> & b );
-
- double measureDistance ( const NICE::SparseVector & a, const NICE::SparseVector & 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 std::vector<NICE::SparseVector > & 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);
-
- NICE::Vector computeKernelVector ( const std::vector<NICE::SparseVector> & X , const NICE::SparseVector & xstar);
-
-
- void sayYourName();
- };
-
- typedef IntersectionKernelFunction<double> IntersectionKernelFunctionDouble;
- }
- #ifdef __GNUC__
- #include "gp-hik-core/kernels/IntersectionKernelFunction.tcc"
- #endif
- #endif
|