PDFParzen.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. /**
  2. * @file PDFParzen.h
  3. * @brief Parzen density
  4. * @author Erik Rodner
  5. * @date 01/29/2008
  6. */
  7. #ifndef PDFParzenINCLUDE
  8. #define PDFParzenINCLUDE
  9. #include "core/image/ImageT.h"
  10. #include "core/vector/VectorT.h"
  11. #include "core/vector/MatrixT.h"
  12. #include <map>
  13. #include "PDF.h"
  14. #include "vislearning/baselib/Gnuplot.h"
  15. namespace OBJREC {
  16. /** Parzen Density */
  17. class PDFParzen : public PDF
  18. {
  19. protected:
  20. // refactor-nice.pl: check this substitution
  21. // old: Vector samples;
  22. NICE::Vector samples;
  23. double kernel_h;
  24. double kernel ( double val ) const;
  25. public:
  26. /** simple constructor */
  27. // refactor-nice.pl: check this substitution
  28. // old: PDFParzen ( const Vector & samples, double _kernel_h );
  29. PDFParzen ( const NICE::Vector & samples, double _kernel_h );
  30. /** simple destructor */
  31. virtual ~PDFParzen();
  32. // refactor-nice.pl: check this substitution
  33. // old: double getNLogDensity ( const Vector & x ) const;
  34. double getNLogDensity ( const NICE::Vector & x ) const;
  35. int getDimension () const;
  36. void vis ( Gnuplot & gnuplot ) const;
  37. };
  38. } // namespace
  39. #endif