46 struct PolynomialRegressionAttrib{
47 virtual ~PolynomialRegressionAttrib(){}
48 virtual T compute(
const T *row)
const = 0;
49 virtual std::string toString()
const = 0;
50 virtual PolynomialRegressionAttrib<T> *
copy()
const = 0;
93 typedef PolynomialRegressionAttrib<T>
Attrib;
117 void setup(
const std::string &
function);
125 Result(
const std::string &xmlfilename);
150 std::vector<const Attrib*>
getAttribs()
const {
return m_attribs; }
153 std::string toString(
const std::vector<std::string> &rowLabels=std::vector<std::string> ())
const;
156 void save(
const std::string &xmlFileName)
const;
189 std::string getFunctionString()
const;
int m_attribMaxIndex
maximum x-row index used in the attribute list
Definition: PolynomialRegression.h:114
ICLQt_API void save(const core::ImgBase &image, const std::string &filename)
write an image to HD
result type
Definition: PolynomialRegression.h:97
undocument this line if you encounter any issues!
Definition: Any.h:37
std::string m_function
function definition given
Definition: PolynomialRegression.h:105
#define ICLMath_API
Definition: CompatMacros.h:173
DynMatrix< T > Matrix
internally used matrxi type
Definition: PolynomialRegression.h:90
Result m_result
internal result buffer (always returned as const-reference)
Definition: PolynomialRegression.h:165
Result()
empty default constructor
Definition: PolynomialRegression.h:122
Highly flexible and optimized matrix class implementation.
Definition: DynMatrix.h:81
PolynomialRegressionAttrib< T > Attrib
internally used type
Definition: PolynomialRegression.h:93
const Matrix & getParams() const
set of parameters (on row for each output dimension)
Definition: PolynomialRegression.h:134
Generic Implementation of the Polynomial Regression algorithm.
Definition: PolynomialRegression.h:85
Matrix m_buf
internal buffer
Definition: PolynomialRegression.h:162
std::vector< const Attrib * > m_attribs
list of attribute functions
Definition: PolynomialRegression.h:102
#define ICLMath_IMP
Definition: CompatMacros.h:172
Matrix m_xbuf
internal buffers
Definition: PolynomialRegression.h:111
Matrix m_params
set of estimated parameters
Definition: PolynomialRegression.h:108
void copy(const T *src, const T *srcEnd, T *dst)
moves data from source to destination array (no casting possible)
Definition: CoreFunctions.h:216
std::vector< const Attrib * > getAttribs() const
returns the dummy attrib instances
Definition: PolynomialRegression.h:150