This test:
Mixture mean [2](0.0981163,-0.732858) Mixture covariance [2,2]((0.837146,-0.470933),(-0.470933,2.16876)) Sample mean [2](0.0862835,-0.705297) Sample covariance [2,2]((0.799899,-0.368035),(-0.368035,1.88599)) Kernel density mixture mean [2](0.0862835,-0.705297) Kernel density mixture covariance [2,2]((0.799899,-0.368035),(-0.368035,1.88599)) Kernel density mixture sample mean [2](0.123679,-0.728515) Kernel density mixture sample covariance [2,2]((0.758673,-0.382827),(-0.382827,1.89692)) Kernel density mixture importance sample mean [2](0.129972,-0.710245) Kernel density mixture importance sample covariance [2,2]((0.730353,-0.300594),(-0.300594,1.51821))
Definition in file test12.cpp.
Go to the source code of this file.
Functions | |
| aux::GaussianPdf | createRandomGaussian (const unsigned int M, const double minMean=-1.0, const double maxMean=1.0, const double minCov=-1.0, const double maxCov=1.0) |
| Create random Gaussian distribution. | |
| int | main (int argc, char *argv[]) |
| Run tests. | |
Variables | |
| unsigned int | M = 2 |
| Dimensionality of the distribution. | |
| unsigned int | COMPONENTS = 4 |
| Number of components in the Gaussian mixture. | |
| unsigned int | P = 5000 |
| Number of samples to take. | |
| unsigned int | RES = 200 |
| Resolution of plots. | |
| double | H = 0.25 * aux::hopt(M,P) |
| Bandwidth. | |
| aux::GaussianPdf createRandomGaussian | ( | const unsigned int | M, | |
| const double | minMean = -1.0, |
|||
| const double | maxMean = 1.0, |
|||
| const double | minCov = -1.0, |
|||
| const double | maxCov = 1.0 | |||
| ) |
Create random Gaussian distribution.
| M | Dimensionality of the Gaussian. | |
| minMean | Minimum value of any component of the mean. | |
| maxMean | Maximum value of any component of the mean. | |
| minCov | Minimum value of any component of the covariance. | |
| maxCov | Maximum value of any component of the covariance. |
Definition at line 75 of file test12.cpp.
| int main | ( | int | argc, | |
| char * | argv[] | |||
| ) |
| unsigned int COMPONENTS = 4 |
| unsigned int M = 2 |
| unsigned int P = 5000 |
| unsigned int RES = 200 |
1.5.3