Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Member Functions | Private Attributes | Friends
icl::math::PolynomialRegression< T >::Result Class Reference

result type More...

#include <PolynomialRegression.h>

List of all members.

Public Member Functions

 Result ()
 empty default constructor
 Result (const std::string &xmlfilename)
 constructor with given xml file saved with the save method
const MatrixgetParams () const
 set of parameters (on row for each output dimension)
const Matrixoperator() (const Matrix &xs) const
 applys the parameters to given set of inputs
std::vector< const Attrib * > getAttribs () const
 returns the dummy attrib instances
std::string toString (const std::vector< std::string > &rowLabels=std::vector< std::string >()) const
 creates a human readable string representation of the result
void save (const std::string &xmlFileName) const
 saves the result to an xml-file

Private Member Functions

void setup (const std::string &function)
 sets up the result by the given function

Private Attributes

std::vector< const Attrib * > m_attribs
 list of attribute functions
std::string m_function
 function definition given
Matrix m_params
 set of estimated parameters
Matrix m_xbuf
 internal buffers
Matrix m_resultBuf
int m_attribMaxIndex
 maximum x-row index used in the attribute list

Friends

class PolynomialRegression
 parent class

Detailed Description

template<class T>
class icl::math::PolynomialRegression< T >::Result

result type


Constructor & Destructor Documentation

template<class T >
icl::math::PolynomialRegression< T >::Result::Result ( ) [inline]

empty default constructor

template<class T >
icl::math::PolynomialRegression< T >::Result::Result ( const std::string &  xmlfilename)

constructor with given xml file saved with the save method


Member Function Documentation

template<class T >
std::vector<const Attrib*> icl::math::PolynomialRegression< T >::Result::getAttribs ( ) const [inline]

returns the dummy attrib instances

template<class T >
const Matrix& icl::math::PolynomialRegression< T >::Result::getParams ( ) const [inline]

set of parameters (on row for each output dimension)

template<class T >
const Matrix& icl::math::PolynomialRegression< T >::Result::operator() ( const Matrix xs) const

applys the parameters to given set of inputs

inputs are assumed to be the rows of xs! The operator computes p(xs) * a, Where p(xs) is the matrix that contains the attribut values for each input row of xs in its rows.

The output matrix contains the outputs as rows

The input matrix needs to have at least m_attribMaxIndex+1 columns

template<class T >
void icl::math::PolynomialRegression< T >::Result::save ( const std::string &  xmlFileName) const

saves the result to an xml-file

template<class T >
void icl::math::PolynomialRegression< T >::Result::setup ( const std::string &  function) [private]

sets up the result by the given function

template<class T >
std::string icl::math::PolynomialRegression< T >::Result::toString ( const std::vector< std::string > &  rowLabels = std::vector< std::string >()) const

creates a human readable string representation of the result


Friends And Related Function Documentation

template<class T >
friend class PolynomialRegression [friend]

parent class


Member Data Documentation

template<class T >
int icl::math::PolynomialRegression< T >::Result::m_attribMaxIndex [mutable, private]

maximum x-row index used in the attribute list

template<class T >
std::vector<const Attrib*> icl::math::PolynomialRegression< T >::Result::m_attribs [private]

list of attribute functions

template<class T >
std::string icl::math::PolynomialRegression< T >::Result::m_function [private]

function definition given

template<class T >
Matrix icl::math::PolynomialRegression< T >::Result::m_params [mutable, private]

set of estimated parameters

template<class T >
Matrix icl::math::PolynomialRegression< T >::Result::m_resultBuf [mutable, private]
template<class T >
Matrix icl::math::PolynomialRegression< T >::Result::m_xbuf [mutable, private]

internal buffers


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines