123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- #ifndef PDFINCLUDE
- #define PDFINCLUDE
- #include "core/vector/VectorT.h"
- #include "core/vector/MatrixT.h"
- #define ROADWORKS { fprintf(stderr, "not yet implemented !\n"); exit(-1); }
- #include "core/vector/VVector.h"
- namespace OBJREC {
- class PDF
- {
- protected:
- public:
-
-
- PDF();
-
- virtual ~PDF();
- virtual double getNLogDensity ( const NICE::Vector & x ) const = 0;
- virtual double getProb ( const NICE::Vector & x ) const;
- virtual int getDimension () const = 0;
- virtual void sample ( NICE::VVector & x, int count ) const { ROADWORKS };
- };
- #undef ROADWORKS
- }
- #endif
|