PDF.cpp 664 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /**
  2. * @file PDF.cpp
  3. * @brief Interface for arbitrary multivariate density functions
  4. * @author Erik Rodner
  5. * @date 01/29/2008
  6. */
  7. #ifdef NOVISUAL
  8. #include <vislearning/nice_nonvis.h>
  9. #else
  10. #include <vislearning/nice.h>
  11. #endif
  12. #include <iostream>
  13. #include "vislearning/math/pdf/PDF.h"
  14. using namespace OBJREC;
  15. using namespace std;
  16. // refactor-nice.pl: check this substitution
  17. // old: using namespace ice;
  18. using namespace NICE;
  19. PDF::PDF()
  20. {
  21. }
  22. PDF::~PDF()
  23. {
  24. }
  25. // refactor-nice.pl: check this substitution
  26. // old: double PDF::getProb ( const Vector & x ) const
  27. double PDF::getProb ( const NICE::Vector & x ) const
  28. {
  29. return exp ( - getNLogDensity(x) );
  30. }