30 #ifndef LRANDOMFOREST_H_ 31 #define LRANDOMFOREST_H_ 57 int predict(
float* f,
float& p)
const;
58 int predict(
float* f,
float* p)
const;
60 double proximity(
float* f,
int cl,
int self = -1)
const;
62 double rawOutlier(
float* f,
int cl,
int self = -1)
const;
64 double outlier(
float* f,
int cl)
const;
72 float** X,
int* L,
int m,
int n,
int m_try,
int max_depth,
73 int min_samples = 1,
int num_grid = 20);
76 void saveForest(
const char* filename,
unsigned int offset = 0);
77 void loadForest(
const char* filename,
unsigned int offset = 0);
double outlier(float *f, int cl) const
void loadForest(const char *filename, unsigned int offset=0)
void trainForest(float **X, int *L, int m, int n, int m_try, int max_depth, int min_samples=1, int num_grid=20)
double * absDevRawOutlier
int predict(float *f) const
double proximity(float *f, int cl, int self=-1) const
double * medianRawOutlier
double rawOutlier(float *f, int cl, int self=-1) const
std::vector< lRandomTree * > vTrees
void saveForest(const char *filename, unsigned int offset=0)