123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- /**
- * @file PDFDirichlet.h
- * @brief dirichlet distribution
- * @author Erik Rodner
- * @date 01/29/2008
- */
- #ifndef PDFDirichletINCLUDE
- #define PDFDirichletINCLUDE
- #ifdef NOVISUAL
- #include <vislearning/nice_nonvis.h>
- #else
- #include <vislearning/nice.h>
- #endif
- #include "PDF.h"
- namespace OBJREC {
- /** dirichlet distribution */
- class PDFDirichlet : public PDF
- {
- protected:
- // refactor-nice.pl: check this substitution
- // old: Vector alpha;
- NICE::Vector alpha;
- int dimension;
- public:
-
- /** simple constructor */
- PDFDirichlet( double alpha, int dimension );
- // refactor-nice.pl: check this substitution
- // old: PDFDirichlet( const Vector & alpha );
- PDFDirichlet( const NICE::Vector & alpha );
- /** simple destructor */
- virtual ~PDFDirichlet();
- // refactor-nice.pl: check this substitution
- // old: double getNLogDensity ( const Vector & x ) const;
- double getNLogDensity ( const NICE::Vector & x ) const;
- // refactor-nice.pl: check this substitution
- // old: double getProb ( const Vector & x ) const;
- double getProb ( const NICE::Vector & x ) const;
- int getDimension () const;
- void sample ( NICE::VVector & samples, int count ) const;
-
- };
- } // namespace
- #endif
|