Loading...
Searching...
No Matches
te::rp::ca::MatrixOutputAdaptor< DataType > Class Template Reference

Classifiers matrix output data adaptor. More...

#include <ClassifierAdaptors.h>

Inheritance diagram for te::rp::ca::MatrixOutputAdaptor< DataType >:
te::cl::OutputAdaptor< DataType >

Public Member Functions

unsigned int getElementsCount () const
 Returns the total elements number.
 
unsigned int getFeaturesCount () const
 Returns the total features per element number.
 
 MatrixOutputAdaptor (te::rp::Matrix< DataType > &matrix)
 
void setFeature (const unsigned int &elementIndex, const unsigned int &featureIndex, const DataType &value)
 Set one feature value.
 
 ~MatrixOutputAdaptor ()
 

Protected Attributes

te::rp::Matrix< DataType > & m_matrix
 
unsigned int m_nCols
 
unsigned int m_nRows
 

Detailed Description

template<typename DataType>
class te::rp::ca::MatrixOutputAdaptor< DataType >

Classifiers matrix output data adaptor.

Definition at line 133 of file ClassifierAdaptors.h.

Constructor & Destructor Documentation

◆ MatrixOutputAdaptor()

template<typename DataType>
te::rp::ca::MatrixOutputAdaptor< DataType >::MatrixOutputAdaptor ( te::rp::Matrix< DataType > & matrix)
inline

Definition at line 137 of file ClassifierAdaptors.h.

References m_matrix, m_nCols, and m_nRows.

◆ ~MatrixOutputAdaptor()

template<typename DataType>
te::rp::ca::MatrixOutputAdaptor< DataType >::~MatrixOutputAdaptor ( )
inline

Definition at line 142 of file ClassifierAdaptors.h.

Member Function Documentation

◆ getElementsCount()

template<typename DataType>
unsigned int te::rp::ca::MatrixOutputAdaptor< DataType >::getElementsCount ( ) const
inlinevirtual

Returns the total elements number.

Implements te::cl::OutputAdaptor< DataType >.

Definition at line 153 of file ClassifierAdaptors.h.

References m_nCols, and m_nRows.

◆ getFeaturesCount()

template<typename DataType>
unsigned int te::rp::ca::MatrixOutputAdaptor< DataType >::getFeaturesCount ( ) const
inlinevirtual

Returns the total features per element number.

Implements te::cl::OutputAdaptor< DataType >.

Definition at line 159 of file ClassifierAdaptors.h.

References m_nCols.

◆ setFeature()

template<typename DataType>
void te::rp::ca::MatrixOutputAdaptor< DataType >::setFeature ( const unsigned int & elementIndex,
const unsigned int & featureIndex,
const DataType & value )
inlinevirtual

Set one feature value.

Parameters
elementIndexElement index..
featureIndexFeature index.

Implements te::cl::OutputAdaptor< DataType >.

Definition at line 145 of file ClassifierAdaptors.h.

References m_matrix, and m_nCols.

Member Data Documentation

◆ m_matrix

template<typename DataType>
te::rp::Matrix< DataType >& te::rp::ca::MatrixOutputAdaptor< DataType >::m_matrix
protected

Definition at line 166 of file ClassifierAdaptors.h.

Referenced by MatrixOutputAdaptor(), and setFeature().

◆ m_nCols

template<typename DataType>
unsigned int te::rp::ca::MatrixOutputAdaptor< DataType >::m_nCols
protected

◆ m_nRows

template<typename DataType>
unsigned int te::rp::ca::MatrixOutputAdaptor< DataType >::m_nRows
protected

Definition at line 167 of file ClassifierAdaptors.h.

Referenced by getElementsCount(), and MatrixOutputAdaptor().


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