KrisLibrary
1.0.0
|
A base class for density estimators. Each point in an N dimensional space is attached to some data pointer. Density in the space is measured by the Density() function, and only matters in a relative sense. More...
#include <DensityEstimator.h>
Public Member Functions | |
virtual void | Clear ()=0 |
virtual void | Add (const Math::Vector &x, void *data)=0 |
virtual void | Remove (const Math::Vector &x, void *data)=0 |
virtual double | Density (const Config &x)=0 |
virtual void * | RandomNear (const Math::Vector &x) |
virtual void * | Random () |
virtual void | Random (Math::Vector &x) |
A base class for density estimators. Each point in an N dimensional space is attached to some data pointer. Density in the space is measured by the Density() function, and only matters in a relative sense.
Subclasses may also overload Random() and RandomNear() to sample an existing point