Microscopy Image Browser 2.91
MIB
Loading...
Searching...
No Matches
classRF.cpp File Reference
#include "stdlib.h"
#include "memory.h"
#include "rf.h"
#include "stdio.h"
#include "math.h"
Include dependency graph for classRF.cpp:

Macros

#define Rprintf   printf
 
#define F77_CALL(x)
 
#define F77_NAME(x)
 
#define F77_SUB(x)
 
#define MAX_UINT_COKUS   4294967295
 

Typedefs

typedef unsigned long uint32
 

Functions

void seedMT (uint32 seed)
 
uint32 reloadMT (void)
 
uint32 randomMT (void)
 
void buildtree_ (int *a, int *b, int *cl, int *cat, int *maxcat, int *mdim, int *nsample, int *nclass, int *treemap, int *bestvar, int *bestsplit, int *bestsplitnext, double *tgini, int *nodestatus, int *nodepop, int *nodestart, double *classpop, double *tclasspop, double *tclasscat, int *ta, int *nrnodes, int *, int *, int *, int *, int *, int *, int *, double *, double *, double *, int *, int *, int *)
 
void rrand_ (double *r)
 
double unif_rand ()
 
void * S_alloc_alt (int a, int b)
 
void GetRNGstate ()
 
void PutRNGstate ()
 
void oob (int nsample, int nclass, int *jin, int *cl, int *jtr, int *jerr, int *counttr, int *out, double *errtr, int *jest, double *cutoff)
 
void TestSetError (double *countts, int *jts, int *clts, int *jet, int ntest, int nclass, int nvote, double *errts, int labelts, int *nclts, double *cutoff)
 
void classRF (double *x, int *dimx, int *cl, int *ncl, int *cat, int *maxcat, int *sampsize, int *strata, int *Options, int *ntree, int *nvar, int *ipi, double *classwt, double *cut, int *nodesize, int *outcl, int *counttr, double *prox, double *imprt, double *impsd, double *impmat, int *nrnodes, int *ndbigtree, int *nodestatus, int *bestvar, int *treemap, int *nodeclass, double *xbestsplit, double *errtr, int *testdat, double *xts, int *clts, int *nts, double *countts, int *outclts, int labelts, double *proxts, double *errts, int *inbag)
 
void classForest (int *mdim, int *ntest, int *nclass, int *maxcat, int *nrnodes, int *ntree, double *x, double *xbestsplit, double *pid, double *cutoff, double *countts, int *treemap, int *nodestatus, int *cat, int *nodeclass, int *jts, int *jet, int *bestvar, int *node, int *treeSize, int *keepPred, int *prox, double *proxMat, int *nodes)
 

Macro Definition Documentation

◆ F77_CALL

#define F77_CALL ( x)
Value:
x ## _

Referenced by classRF().

◆ F77_NAME

#define F77_NAME ( x)
Value:
#define F77_CALL(x)
Definition classRF.cpp:60

◆ F77_SUB

#define F77_SUB ( x)
Value:

◆ MAX_UINT_COKUS

#define MAX_UINT_COKUS   4294967295

Referenced by unif_rand().

◆ Rprintf

#define Rprintf   printf

Referenced by classRF().

Typedef Documentation

◆ uint32

typedef unsigned long uint32

Function Documentation

◆ buildtree_()

void buildtree_ ( int * a,
int * b,
int * cl,
int * cat,
int * maxcat,
int * mdim,
int * nsample,
int * nclass,
int * treemap,
int * bestvar,
int * bestsplit,
int * bestsplitnext,
double * tgini,
int * nodestatus,
int * nodepop,
int * nodestart,
double * classpop,
double * tclasspop,
double * tclasscat,
int * ta,
int * nrnodes,
int * ,
int * ,
int * ,
int * ,
int * ,
int * ,
int * ,
double * ,
double * ,
double * ,
int * ,
int * ,
int *  )

◆ classForest()

void classForest ( int * mdim,
int * ntest,
int * nclass,
int * maxcat,
int * nrnodes,
int * ntree,
double * x,
double * xbestsplit,
double * pid,
double * cutoff,
double * countts,
int * treemap,
int * nodestatus,
int * cat,
int * nodeclass,
int * jts,
int * jet,
int * bestvar,
int * node,
int * treeSize,
int * keepPred,
int * prox,
double * proxMat,
int * nodes )

References computeProximity(), n, NULL, predictClassTree(), unif_rand(), and zeroDouble().

Referenced by main(), and mexFunction().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ classRF()

void classRF ( double * x,
int * dimx,
int * cl,
int * ncl,
int * cat,
int * maxcat,
int * sampsize,
int * strata,
int * Options,
int * ntree,
int * nvar,
int * ipi,
double * classwt,
double * cut,
int * nodesize,
int * outcl,
int * counttr,
double * prox,
double * imprt,
double * impsd,
double * impmat,
int * nrnodes,
int * ndbigtree,
int * nodestatus,
int * bestvar,
int * treemap,
int * nodeclass,
double * xbestsplit,
double * errtr,
int * testdat,
double * xts,
int * clts,
int * nts,
double * countts,
int * outclts,
int labelts,
double * proxts,
double * errts,
int * inbag )

◆ GetRNGstate()

void GetRNGstate ( )

Referenced by classRF().

Here is the caller graph for this function:

◆ oob()

void oob ( int nsample,
int nclass,
int * jin,
int * cl,
int * jtr,
int * jerr,
int * counttr,
int * out,
double * errtr,
int * jest,
double * cutoff )

References n, S_alloc_alt(), unif_rand(), zeroDouble(), and zeroInt().

Referenced by classRF().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ PutRNGstate()

void PutRNGstate ( )

Referenced by classRF().

Here is the caller graph for this function:

◆ randomMT()

uint32 randomMT ( void )
extern

References left, next, reloadMT(), and uint32.

Referenced by unif_rand().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ reloadMT()

uint32 reloadMT ( void )
extern

References K, left, loBit, M, mixBits, N, next, seedMT(), state, and uint32.

Here is the call graph for this function:

◆ rrand_()

void rrand_ ( double * r)

References unif_rand().

Here is the call graph for this function:

◆ S_alloc_alt()

void * S_alloc_alt ( int a,
int b )

Referenced by classRF(), and oob().

Here is the caller graph for this function:

◆ seedMT()

void seedMT ( uint32 seed)
extern

References left, N, state, and uint32.

Referenced by classRF(), and regRF().

Here is the caller graph for this function:

◆ TestSetError()

void TestSetError ( double * countts,
int * jts,
int * clts,
int * jet,
int ntest,
int nclass,
int nvote,
double * errts,
int labelts,
int * nclts,
double * cutoff )

References n, unif_rand(), and zeroDouble().

Referenced by classRF().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ unif_rand()

double unif_rand ( )

References MAX_UINT_COKUS, and randomMT().

Referenced by classForest(), classRF(), oob(), rrand_(), and TestSetError().

Here is the call graph for this function:
Here is the caller graph for this function: