
Definition at line 38 of file KernelDensityPdf.hpp.
Public Member Functions | |
| KernelDensityPdf () | |
| Default constructor. | |
| KernelDensityPdf (PartitionTree *tree, const NT &N, const KT &K) | |
| Constructor. | |
| virtual | ~KernelDensityPdf () |
| Destructor. | |
| virtual void | setDimensions (const unsigned int N, const bool preserve=false) |
| Not supported. | |
| virtual const vector & | getExpectation () |
| Get the expected value of the distribution. | |
| virtual const symmetric_matrix & | getCovariance () |
| Get the covariance of the distribution. | |
| virtual vector | sample () |
| Sample from the distribution. | |
| virtual double | densityAt (const vector &x) |
| Calculate the density at a given point. | |
| vector | densityAt (PartitionTree &tree) |
| Calculate the density for all points in a tree. | |
| KernelDensityPdf | ( | ) | [inline] |
Default constructor.
Initialises the distribution with zero dimensions. This should generally only be used when the object is to be restored from a serialization.
Definition at line 168 of file KernelDensityPdf.hpp.
| KernelDensityPdf | ( | PartitionTree * | tree, | |
| const NT & | N, | |||
| const KT & | K | |||
| ) | [inline] |
Constructor.
| tree | Partition tree over which to define distribution. Caller has ownership. | |
| N | ; a norm. | |
| K | ; density kernel. |
Definition at line 174 of file KernelDensityPdf.hpp.
| ~KernelDensityPdf | ( | ) | [inline, virtual] |
| void setDimensions | ( | const unsigned int | N, | |
| const bool | preserve = false | |||
| ) | [inline, virtual] |
Not supported.
Implements Pdf.
Definition at line 188 of file KernelDensityPdf.hpp.
| const indii::ml::aux::vector & getExpectation | ( | ) | [inline, virtual] |
Get the expected value of the distribution.
; expected value of the distribution. Implements Pdf.
Definition at line 195 of file KernelDensityPdf.hpp.
| const indii::ml::aux::symmetric_matrix & getCovariance | ( | ) | [inline, virtual] |
Get the covariance of the distribution.
; covariance of the distribution. Implements Pdf.
Definition at line 205 of file KernelDensityPdf.hpp.
| indii::ml::aux::vector sample | ( | ) | [inline, virtual] |
Sample from the distribution.
Implements Pdf.
Definition at line 214 of file KernelDensityPdf.hpp.
| double densityAt | ( | const vector & | x | ) | [inline, virtual] |
Calculate the density at a given point.
| x | ; point at which to evaluate the density. |
; the density at
. Implements Pdf.
Definition at line 224 of file KernelDensityPdf.hpp.
| indii::ml::aux::vector densityAt | ( | PartitionTree & | tree | ) | [inline] |
Calculate the density for all points in a tree.
| tree | Query tree. |
Definition at line 266 of file KernelDensityPdf.hpp.
1.5.3