#include <RandomForestModel.h>
Public Member Functions | |
DataMatrix () | |
DataMatrix (int nrows, int ncols, bool ones=false) | |
DataMatrix (const std::vector< double > &d, int nrows, int ncols) | |
double & | data_at (int x, int y) |
void | repmat (int asize, int bsize, DataMatrix &R) const |
void | findIndicesLT (double scalar, DataMatrix &R) const |
void | subset_rows (int *select_rows, int s_rows_size, DataMatrix &R) const |
void | subset_cols (int *select_cols, int s_cols_size, DataMatrix &R) const |
void | findValue (double value, DataMatrix &R) const |
void | findIndicesNE (double scalar, DataMatrix &R) const |
void | findIndicesE (double scalar, DataMatrix &R) const |
int | maxIndex () const |
double | randomValue () const |
void | matrix_multiply (const DataMatrix &X, const DataMatrix &Y) |
void | combine (const DataMatrix &A, const DataMatrix &B) |
Data Fields | |
std::vector< double > | data |
int | num_rows |
int | num_cols |
Definition at line 44 of file RandomForestModel.h.
rfmodel::DataMatrix::DataMatrix | ( | ) | [inline] |
Definition at line 48 of file RandomForestModel.h.
Definition at line 60 of file RandomForestModel.h.
References data, and num_cols.
Referenced by matrix_multiply().
void rfmodel::DataMatrix::repmat | ( | int | asize, | |
int | bsize, | |||
DataMatrix & | R | |||
) | const [inline] |
Definition at line 63 of file RandomForestModel.h.
References data, num_cols, and num_rows.
Referenced by rfmodel::TreeModel::treeTest().
void rfmodel::DataMatrix::findIndicesLT | ( | double | scalar, | |
DataMatrix & | R | |||
) | const [inline] |
Definition at line 71 of file RandomForestModel.h.
References count, data, num_cols, and num_rows.
Referenced by rfmodel::Model::weakTest().
void rfmodel::DataMatrix::subset_rows | ( | int * | select_rows, | |
int | s_rows_size, | |||
DataMatrix & | R | |||
) | const [inline] |
Definition at line 81 of file RandomForestModel.h.
References data, and num_cols.
Referenced by rfmodel::TreeModel::treeTest().
void rfmodel::DataMatrix::subset_cols | ( | int * | select_cols, | |
int | s_cols_size, | |||
DataMatrix & | R | |||
) | const [inline] |
Definition at line 88 of file RandomForestModel.h.
References data, and num_rows.
Referenced by rfmodel::TreeModel::treeTest(), and rfmodel::Model::weakTest().
void rfmodel::DataMatrix::findValue | ( | double | value, | |
DataMatrix & | R | |||
) | const [inline] |
Definition at line 95 of file RandomForestModel.h.
References data, num_cols, and num_rows.
Referenced by rfmodel::TreeModel::treeTest().
void rfmodel::DataMatrix::findIndicesNE | ( | double | scalar, | |
DataMatrix & | R | |||
) | const [inline] |
Definition at line 105 of file RandomForestModel.h.
References count, data, num_cols, and num_rows.
Referenced by rfmodel::TreeModel::treeTest().
void rfmodel::DataMatrix::findIndicesE | ( | double | scalar, | |
DataMatrix & | R | |||
) | const [inline] |
int rfmodel::DataMatrix::maxIndex | ( | ) | const [inline] |
double rfmodel::DataMatrix::randomValue | ( | ) | const [inline] |
void rfmodel::DataMatrix::matrix_multiply | ( | const DataMatrix & | X, | |
const DataMatrix & | Y | |||
) | [inline] |
Definition at line 148 of file RandomForestModel.h.
References data, data_at(), num_cols, and num_rows.
Referenced by rfmodel::Model::weakTest().
void rfmodel::DataMatrix::combine | ( | const DataMatrix & | A, | |
const DataMatrix & | B | |||
) | [inline] |
Definition at line 160 of file RandomForestModel.h.
References data, num_cols, and num_rows.
Referenced by rfmodel::Model::weakTest().
std::vector<double> rfmodel::DataMatrix::data |
Definition at line 45 of file RandomForestModel.h.
Referenced by combine(), data_at(), DataMatrix(), findIndicesE(), findIndicesLT(), findIndicesNE(), findValue(), matrix_multiply(), maxIndex(), randomValue(), repmat(), subset_cols(), subset_rows(), rfmodel::TreeModel::treeTest(), and rfmodel::Model::weakTest().
Definition at line 46 of file RandomForestModel.h.
Referenced by combine(), findIndicesE(), findIndicesLT(), findIndicesNE(), findValue(), matrix_multiply(), maxIndex(), randomValue(), repmat(), subset_cols(), rfmodel::TreeModel::treeTest(), and rfmodel::Model::weakTest().
Definition at line 47 of file RandomForestModel.h.
Referenced by combine(), data_at(), findIndicesE(), findIndicesLT(), findIndicesNE(), findValue(), matrix_multiply(), maxIndex(), randomValue(), repmat(), subset_rows(), rfmodel::TreeModel::treeTest(), and rfmodel::Model::weakTest().