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

Macros

#define MAX_UINT_COKUS   4294967295
 

Functions

void seedMT (uint32 seed)
 
uint32 reloadMT (void)
 
uint32 randomMT (void)
 
double unif_rand ()
 
void zeroInt (int *x, int length)
 
void zeroDouble (double *x, int length)
 
void createClass (double *x, int realN, int totalN, int mdim)
 
void normClassWt (int *cl, const int nsample, const int nclass, const int useWt, double *classwt, int *classFreq)
 
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)
 
int pack (int nBits, int *bits)
 
void unpack (unsigned int pack, int *bits)
 

Macro Definition Documentation

◆ MAX_UINT_COKUS

#define MAX_UINT_COKUS   4294967295

Function Documentation

◆ computeProximity()

void computeProximity ( double * prox,
int oobprox,
int * node,
int * inbag,
int * oobpair,
int n )

◆ createClass()

void createClass ( double * x,
int realN,
int totalN,
int mdim )

References unif_rand().

Referenced by classRF().

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

◆ makeA()

void makeA ( double * x,
const int mdim,
const int nsample,
int * cat,
int * a,
int * b )

References R_qsort_I().

Referenced by classRF().

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

◆ modA()

void modA ( int * a,
int * nuse,
const int nsample,
const int mdim,
int * cat,
const int maxcat,
int * ncase,
int * jin )

Referenced by classRF().

Here is the caller graph for this function:

◆ normClassWt()

void normClassWt ( int * cl,
const int nsample,
const int nclass,
const int useWt,
double * classwt,
int * classFreq )

Referenced by classRF().

Here is the caller graph for this function:

◆ pack()

int pack ( int nBits,
int * bits )

◆ permuteOOB()

void permuteOOB ( int m,
double * x,
int * in,
int nsample,
int mdim )

◆ randomMT()

uint32 randomMT ( void )
extern

◆ reloadMT()

uint32 reloadMT ( void )
extern

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

Referenced by randomMT().

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

◆ seedMT()

void seedMT ( uint32 seed)
extern

◆ unif_rand()

double unif_rand ( )
extern

References MAX_UINT_COKUS, and randomMT().

Referenced by classForest(), classRF(), createClass(), findBestSplit(), oob(), permuteOOB(), regRF(), rrand_(), and TestSetError().

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

◆ unpack()

void unpack ( unsigned int pack,
int * bits )

◆ Xtranslate()

void Xtranslate ( double * x,
int mdim,
int nrnodes,
int nsample,
int * bestvar,
int * bestsplit,
int * bestsplitnext,
double * xbestsplit,
int * nodestatus,
int * cat,
int treeSize )

Referenced by classRF().

Here is the caller graph for this function:

◆ zeroDouble()

void zeroDouble ( double * x,
int length )

◆ zeroInt()

void zeroInt ( int * x,
int length )