Class LogisticRegressorQualityEstimator::Matrix

Nested Relationships

This class is a nested type of Class LogisticRegressorQualityEstimator.

Class Documentation

class Matrix

Matrix is an internal data structure that was created only to be used in LogisticRegressorQualityEstimator methods.

It intends to represent a matrix, so it receives row and column values as a constructor. Furthermore, the method at can access specific data given a row and col position.

Public Functions

Matrix(const size_t rowsParam, const size_t colsParam)

Parameters
  • [in] rowsParam: number of rows in the Matrix

  • [in] colsParam: number of columns in the Matrix

Matrix(Matrix &&other)

Move constructor.

const float &at(const size_t row, const size_t col) const

Return data value given a row and col position.

Parameters
  • [in] row: row position

  • [in] col: col position

float &at(const size_t row, const size_t col)

Public Members

const size_t rows

Number of rows.

const size_t cols

Number of columns.