PDF.cpp 568 B

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