#include "rand.h"
Go to the source code of this file.
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) |
double | annRan0 () |
static double | annRanGauss () |
static int | annRanInt (int n) |
static double | annRanLaplace () |
static double | annRanUnif (double lo, double hi) |
void | annUniformPts (ANNpointArray pa, int n, int dim) |
static void | genGauss (ANNpointArray pa, int n, int dim, double *center, double *std_dev) |
static void | genOrthFlat (ANNpointArray pa, int n, int dim, double *control, double std_dev) |
Variables | |
int | annIdum = 0 |
const double | CO_FLAG = 999 |
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().
double annRan0 | ( | ) |
Definition at line 59 of file rand.cpp.
References ANN_RAND, ANN_RAND_MAX, ANN_SRAND, annIdum, Py::int, and MovieTool::y.
Referenced by annClusEllipsoids(), annClusOrthFlats(), annCoLaplacePts(), annRanInt(), annRanLaplace(), and annRanUnif().
static double annRanGauss | ( | ) | [static] |
Definition at line 137 of file rand.cpp.
References annRanUnif(), KDL::log(), KDL::sqrt(), and draftlibs::fcgeo::v1().
Referenced by annClusGaussPts(), annCoGaussPts(), annGaussPts(), annPlanted(), genGauss(), and genOrthFlat().
static int annRanInt | ( | int | n | ) | [static] |
Definition at line 112 of file rand.cpp.
References annRan0(), and Py::int.
Referenced by annClusEllipsoids(), annClusGaussPts(), annClusOrthFlats(), and annPlanted().
static double annRanLaplace | ( | ) | [static] |
Definition at line 181 of file rand.cpp.
References annRan0(), FemExample::b, KDL::log(), and KDL::sign().
Referenced by annCoLaplacePts(), and annLaplacePts().
static double annRanUnif | ( | double | lo, | |
double | hi | |||
) | [static] |
Definition at line 124 of file rand.cpp.
References annRan0().
Referenced by annClusEllipsoids(), annClusGaussPts(), annClusOrthFlats(), annRanGauss(), annUniformPts(), and genOrthFlat().
void annUniformPts | ( | ANNpointArray | pa, | |
int | n, | |||
int | dim | |||
) |
static void genGauss | ( | ANNpointArray | pa, | |
int | n, | |||
int | dim, | |||
double * | center, | |||
double * | std_dev | |||
) | [static] |
Definition at line 489 of file rand.cpp.
References annRanGauss().
Referenced by annClusEllipsoids().
static void genOrthFlat | ( | ANNpointArray | pa, | |
int | n, | |||
int | dim, | |||
double * | control, | |||
double | std_dev | |||
) | [static] |
Definition at line 391 of file rand.cpp.
References annRanGauss(), annRanUnif(), and CO_FLAG.
Referenced by annClusOrthFlats().
int annIdum = 0 |
Definition at line 42 of file rand.cpp.
Referenced by annRan0(), generatePts(), initGlobals(), and main().
const double CO_FLAG = 999 |
Definition at line 389 of file rand.cpp.
Referenced by annClusOrthFlats(), and genOrthFlat().