Image Component Library (ICL)
|
result type More...
#include <PolynomialRegression.h>
Public Member Functions | |
Result () | |
empty default constructor | |
Result (const std::string &xmlfilename) | |
constructor with given xml file saved with the save method | |
const Matrix & | getParams () const |
set of parameters (on row for each output dimension) | |
const Matrix & | operator() (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 |
result type
icl::math::PolynomialRegression< T >::Result::Result | ( | ) | [inline] |
empty default constructor
icl::math::PolynomialRegression< T >::Result::Result | ( | const std::string & | xmlfilename | ) |
constructor with given xml file saved with the save method
std::vector<const Attrib*> icl::math::PolynomialRegression< T >::Result::getAttribs | ( | ) | const [inline] |
returns the dummy attrib instances
const Matrix& icl::math::PolynomialRegression< T >::Result::getParams | ( | ) | const [inline] |
set of parameters (on row for each output dimension)
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
void icl::math::PolynomialRegression< T >::Result::save | ( | const std::string & | xmlFileName | ) | const |
saves the result to an xml-file
void icl::math::PolynomialRegression< T >::Result::setup | ( | const std::string & | function | ) | [private] |
sets up the result by the given function
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
friend class PolynomialRegression [friend] |
parent class
int icl::math::PolynomialRegression< T >::Result::m_attribMaxIndex [mutable, private] |
maximum x-row index used in the attribute list
std::vector<const Attrib*> icl::math::PolynomialRegression< T >::Result::m_attribs [private] |
list of attribute functions
std::string icl::math::PolynomialRegression< T >::Result::m_function [private] |
function definition given
Matrix icl::math::PolynomialRegression< T >::Result::m_params [mutable, private] |
set of estimated parameters
Matrix icl::math::PolynomialRegression< T >::Result::m_resultBuf [mutable, private] |
Matrix icl::math::PolynomialRegression< T >::Result::m_xbuf [mutable, private] |
internal buffers