KernelExp.h 890 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /**
  2. * @file KernelExp.h
  3. * @brief Interface for the popular exponential mercer kernels
  4. * @author Erik Rodner
  5. * @date 10/24/2007
  6. */
  7. #ifndef KERNELEXPINCLUDE
  8. #define KERNELEXPINCLUDE
  9. #ifdef NOVISUAL
  10. #include <vislearning/nice_nonvis.h>
  11. #else
  12. #include <vislearning/nice.h>
  13. #endif
  14. #include "Kernel.h"
  15. #include <core/vector/Distance.h>
  16. /** Interface for the popular exponential mercer kernels */
  17. namespace OBJREC {
  18. class KernelExp : public Kernel
  19. {
  20. protected:
  21. NICE::VectorDistance<double> *kInside;
  22. double a;
  23. public:
  24. /** simple constructor */
  25. KernelExp( NICE::VectorDistance<double> *_kInside, double _a );
  26. /** simple destructor */
  27. virtual ~KernelExp();
  28. // refactor-nice.pl: check this substitution
  29. // old: double K (const Vector & x, const Vector & y) const;
  30. double K (const NICE::Vector & x, const NICE::Vector & y) const;
  31. };
  32. } // namespace
  33. #endif