![]() |
Microscopy Image Browser 2.91
MIB
|
Macros | |
#define | isBitOn(x, pos) |
#define | swapInt(a, b) |
#define | F77_CALL(x) |
#define | F77_NAME(x) |
#define | F77_SUB(x) |
#define | NODE_TERMINAL -1 |
#define | NODE_TOSPLIT -2 |
#define | NODE_INTERIOR -3 |
Functions | |
void | normClassWt (int *cl, const int nsample, const int nclass, const int useWt, double *classwt, int *classFreq) |
void | classForest (int *mdim, int *ntest, int *nclass, int *maxcat, int *nrnodes, int *jbt, double *xts, double *xbestsplit, double *pid, double *cutoff, double *countts, int *treemap, int *nodestatus, int *cat, int *nodeclass, int *jts, int *jet, int *bestvar, int *nodexts, int *ndbigtree, int *keepPred, int *prox, double *proxmatrix, int *nodes) |
void | regTree (double *x, double *y, int mdim, int nsample, int *lDaughter, int *rDaughter, double *upper, double *avnode, int *nodestatus, int nrnodes, int *treeSize, int nthsize, int mtry, int *mbest, int *cat, double *tgini, int *varUsed) |
void | findBestSplit (double *x, int *jdex, double *y, int mdim, int nsample, int ndstart, int ndend, int *msplit, double *decsplit, double *ubest, int *ndendl, int *jstat, int mtry, double sumnode, int nodecnt, int *cat) |
void | predictRegTree (double *x, int nsample, int mdim, int *lDaughter, int *rDaughter, int *nodestatus, double *ypred, double *split, double *nodepred, int *splitVar, int treeSize, int *cat, int maxcat, int *nodex) |
void | predictClassTree (double *x, int n, int mdim, int *treemap, int *nodestatus, double *xbestsplit, int *bestvar, int *nodeclass, int ndbigtree, int *cat, int nclass, int *jts, int *nodex, int maxcat) |
int | pack (int l, int *icat) |
void | unpack (unsigned int npack, int *icat) |
void | zeroInt (int *x, int length) |
void | zeroDouble (double *x, int length) |
void | createClass (double *x, int realN, int totalN, int mdim) |
void | prepare (int *cl, const int nsample, const int nclass, const int ipi, double *pi, double *pid, int *nc, double *wtt) |
void | makeA (double *x, const int mdim, const int nsample, int *cat, int *a, int *b) |
void | modA (int *a, int *nuse, const int nsample, const int mdim, int *cat, const int maxcat, int *ncase, int *jin) |
void | Xtranslate (double *x, int mdim, int nrnodes, int nsample, int *bestvar, int *bestsplit, int *bestsplitnext, double *xbestsplit, int *nodestatus, int *cat, int treeSize) |
void | permuteOOB (int m, double *x, int *in, int nsample, int mdim) |
void | computeProximity (double *prox, int oobprox, int *node, int *inbag, int *oobpair, int n) |
#define F77_CALL | ( | x | ) |
#define F77_SUB | ( | x | ) |
#define isBitOn | ( | x, | |
pos ) |
#define NODE_INTERIOR -3 |
Referenced by regTree().
#define NODE_TERMINAL -1 |
Referenced by predictClassTree(), predictRegTree(), and regTree().
#define NODE_TOSPLIT -2 |
Referenced by regTree().
#define swapInt | ( | a, | |
b ) |
Referenced by classRF().
void classForest | ( | int * | mdim, |
int * | ntest, | ||
int * | nclass, | ||
int * | maxcat, | ||
int * | nrnodes, | ||
int * | jbt, | ||
double * | xts, | ||
double * | xbestsplit, | ||
double * | pid, | ||
double * | cutoff, | ||
double * | countts, | ||
int * | treemap, | ||
int * | nodestatus, | ||
int * | cat, | ||
int * | nodeclass, | ||
int * | jts, | ||
int * | jet, | ||
int * | bestvar, | ||
int * | nodexts, | ||
int * | ndbigtree, | ||
int * | keepPred, | ||
int * | prox, | ||
double * | proxmatrix, | ||
int * | nodes ) |
void computeProximity | ( | double * | prox, |
int | oobprox, | ||
int * | node, | ||
int * | inbag, | ||
int * | oobpair, | ||
int | n ) |
References n.
Referenced by classForest(), classRF(), regForest(), and regRF().
void createClass | ( | double * | x, |
int | realN, | ||
int | totalN, | ||
int | mdim ) |
References unif_rand().
Referenced by classRF().
void findBestSplit | ( | double * | x, |
int * | jdex, | ||
double * | y, | ||
int | mdim, | ||
int | nsample, | ||
int | ndstart, | ||
int | ndend, | ||
int * | msplit, | ||
double * | decsplit, | ||
double * | ubest, | ||
int * | ndendl, | ||
int * | jstat, | ||
int | mtry, | ||
double | sumnode, | ||
int | nodecnt, | ||
int * | cat ) |
References imax2(), in_findBestSplit, pack(), R_qsort_I(), swapInt, unif_rand(), zeroDouble(), and zeroInt().
Referenced by regRF(), and regTree().
void makeA | ( | double * | x, |
const int | mdim, | ||
const int | nsample, | ||
int * | cat, | ||
int * | a, | ||
int * | b ) |
References R_qsort_I().
Referenced by classRF().
void modA | ( | int * | a, |
int * | nuse, | ||
const int | nsample, | ||
const int | mdim, | ||
int * | cat, | ||
const int | maxcat, | ||
int * | ncase, | ||
int * | jin ) |
void normClassWt | ( | int * | cl, |
const int | nsample, | ||
const int | nclass, | ||
const int | useWt, | ||
double * | classwt, | ||
int * | classFreq ) |
int pack | ( | int | l, |
int * | icat ) |
void permuteOOB | ( | int | m, |
double * | x, | ||
int * | in, | ||
int | nsample, | ||
int | mdim ) |
References unif_rand().
Referenced by classRF(), and regRF().
void predictClassTree | ( | double * | x, |
int | n, | ||
int | mdim, | ||
int * | treemap, | ||
int * | nodestatus, | ||
double * | xbestsplit, | ||
int * | bestvar, | ||
int * | nodeclass, | ||
int | ndbigtree, | ||
int * | cat, | ||
int | nclass, | ||
int * | jts, | ||
int * | nodex, | ||
int | maxcat ) |
References n, NODE_TERMINAL, and zeroInt().
Referenced by classForest(), and classRF().
void predictRegTree | ( | double * | x, |
int | nsample, | ||
int | mdim, | ||
int * | lDaughter, | ||
int * | rDaughter, | ||
int * | nodestatus, | ||
double * | ypred, | ||
double * | split, | ||
double * | nodepred, | ||
int * | splitVar, | ||
int | treeSize, | ||
int * | cat, | ||
int | maxcat, | ||
int * | nodex ) |
References n.
void prepare | ( | int * | cl, |
const int | nsample, | ||
const int | nclass, | ||
const int | ipi, | ||
double * | pi, | ||
double * | pid, | ||
int * | nc, | ||
double * | wtt ) |
References n.
void regTree | ( | double * | x, |
double * | y, | ||
int | mdim, | ||
int | nsample, | ||
int * | lDaughter, | ||
int * | rDaughter, | ||
double * | upper, | ||
double * | avnode, | ||
int * | nodestatus, | ||
int | nrnodes, | ||
int * | treeSize, | ||
int | nthsize, | ||
int | mtry, | ||
int * | mbest, | ||
int * | cat, | ||
double * | tgini, | ||
int * | varUsed ) |
void unpack | ( | unsigned int | npack, |
int * | icat ) |
void zeroDouble | ( | double * | x, |
int | length ) |
Referenced by classForest(), classRF(), findBestSplit(), oob(), regForest(), regRF(), regTree(), and TestSetError().
void zeroInt | ( | int * | x, |
int | length ) |
Referenced by catmax(), catmaxb(), classRF(), findBestSplit(), oob(), predictClassTree(), predictRegTree(), regForest(), regRF(), and regTree().