#include <cstdlib>
#include <cmath>
#include <ANN/ANN.h>
Go to the source code of this file.
Defines | |
#define | ANN_RAND random |
#define | ANN_RAND_MAX 2147483647UL |
#define | ANN_SRAND srandom |
Functions | |
void | annClusEllipsoids (ANNpointArray pa, int n, int dim, int n_clus, ANNbool new_clust, double std_dev_small, double std_dev_lo, double std_dev_hi, int max_dim) |
void | annClusGaussPts (ANNpointArray pa, int n, int dim, int n_clus, ANNbool new_clust, double std_dev) |
void | annClusOrthFlats (ANNpointArray pa, int n, int dim, int n_clus, ANNbool new_clust, double std_dev, int max_dim) |
void | annCoGaussPts (ANNpointArray pa, int n, int dim, double correlation) |
void | annCoLaplacePts (ANNpointArray pa, int n, int dim, double correlation) |
void | annGaussPts (ANNpointArray pa, int n, int dim, double std_dev) |
void | annLaplacePts (ANNpointArray pa, int n, int dim) |
void | annPlanted (ANNpointArray pa, int n, int dim, ANNpointArray src, int n_src, double std_dev) |
void | annUniformPts (ANNpointArray pa, int n, int dim) |
Variables | |
int | annIdum |
void annClusEllipsoids | ( | ANNpointArray | pa, | |
int | n, | |||
int | dim, | |||
int | n_clus, | |||
ANNbool | new_clust, | |||
double | std_dev_small, | |||
double | std_dev_lo, | |||
double | std_dev_hi, | |||
int | max_dim | |||
) |
Definition at line 503 of file rand.cpp.
References annAllocPts(), annDeallocPts(), annRan0(), annRanInt(), annRanUnif(), genGauss(), offset(), and std_dev.
Referenced by generatePts().
void annClusGaussPts | ( | ANNpointArray | pa, | |
int | n, | |||
int | dim, | |||
int | n_clus, | |||
ANNbool | new_clust, | |||
double | std_dev | |||
) |
Definition at line 314 of file rand.cpp.
References annAllocPts(), annDeallocPts(), annRanGauss(), annRanInt(), and annRanUnif().
Referenced by generatePts().
void annClusOrthFlats | ( | ANNpointArray | pa, | |
int | n, | |||
int | dim, | |||
int | n_clus, | |||
ANNbool | new_clust, | |||
double | std_dev, | |||
int | max_dim | |||
) |
Definition at line 408 of file rand.cpp.
References annAllocPts(), annDeallocPts(), annRan0(), annRanInt(), annRanUnif(), CO_FLAG, genOrthFlat(), and offset().
Referenced by generatePts().
void annCoGaussPts | ( | ANNpointArray | pa, | |
int | n, | |||
int | dim, | |||
double | correlation | |||
) |
Definition at line 250 of file rand.cpp.
References annRanGauss(), and KDL::sqrt().
Referenced by generatePts().
void annCoLaplacePts | ( | ANNpointArray | pa, | |
int | n, | |||
int | dim, | |||
double | correlation | |||
) |
Definition at line 273 of file rand.cpp.
References annRan0(), and annRanLaplace().
Referenced by generatePts().
void annGaussPts | ( | ANNpointArray | pa, | |
int | n, | |||
int | dim, | |||
double | std_dev | |||
) |
void annLaplacePts | ( | ANNpointArray | pa, | |
int | n, | |||
int | dim | |||
) |
void annPlanted | ( | ANNpointArray | pa, | |
int | n, | |||
int | dim, | |||
ANNpointArray | src, | |||
int | n_src, | |||
double | std_dev | |||
) |
Definition at line 580 of file rand.cpp.
References annRanGauss(), and annRanInt().
Referenced by generatePts().
void annUniformPts | ( | ANNpointArray | pa, | |
int | n, | |||
int | dim | |||
) |
int annIdum |
Definition at line 42 of file rand.cpp.
Referenced by annRan0(), generatePts(), initGlobals(), and main().