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. More...
 
unsigned int getFeaturesCount () const
 Returns the total features per element number. More...
 
 MatrixOutputAdaptor (te::rp::Matrix< DataType > &matrix)
 
void setFeature (const unsigned int &elementIndex, const unsigned int &featureIndex, const DataType &value)
 Set one feature value. More...
 
 ~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.

◆ ~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

◆ 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 te::rp::ca::MatrixOutputAdaptor< DataType >::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 te::rp::ca::MatrixOutputAdaptor< DataType >::m_matrix, and te::rp::ca::MatrixOutputAdaptor< DataType >::m_nCols.

Member Data Documentation

◆ m_matrix

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

◆ m_nCols

◆ m_nRows

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

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