PPL Logo

rfmodel::DataMatrix Struct Reference

#include <RandomForestModel.h>

Collaboration diagram for rfmodel::DataMatrix:

Collaboration graph
[legend]

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

Detailed Description

Definition at line 44 of file RandomForestModel.h.


Constructor & Destructor Documentation

rfmodel::DataMatrix::DataMatrix (  )  [inline]

Definition at line 48 of file RandomForestModel.h.

rfmodel::DataMatrix::DataMatrix ( int  nrows,
int  ncols,
bool  ones = false 
) [inline]

Definition at line 49 of file RandomForestModel.h.

References data.

rfmodel::DataMatrix::DataMatrix ( const std::vector< double > &  d,
int  nrows,
int  ncols 
) [inline]

Definition at line 55 of file RandomForestModel.h.

References size_t.


Member Function Documentation

double& rfmodel::DataMatrix::data_at ( int  x,
int  y 
) [inline]

Definition at line 60 of file RandomForestModel.h.

References data, and num_cols.

Referenced by matrix_multiply().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

void rfmodel::DataMatrix::findIndicesE ( double  scalar,
DataMatrix R 
) const [inline]

Definition at line 117 of file RandomForestModel.h.

References count, data, num_cols, and num_rows.

int rfmodel::DataMatrix::maxIndex (  )  const [inline]

Definition at line 130 of file RandomForestModel.h.

References data, max(), num_cols, and num_rows.

Here is the call graph for this function:

double rfmodel::DataMatrix::randomValue (  )  const [inline]

Definition at line 142 of file RandomForestModel.h.

References data, num_cols, and num_rows.

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the caller graph for this function:


Field Documentation

std::vector<double> rfmodel::DataMatrix::data


The documentation for this struct was generated from the following file:

Generated on Mon Sep 21 08:34:19 2020 for Charm++ by  doxygen 1.5.5