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