|
libcrn
3.9.5
A document image processing library
|
Linear interpolation. More...
#include <CRNLinearInterpolation.h>
Inheritance diagram for crn::LinearInterpolation:
Collaboration diagram for crn::LinearInterpolation:Public Member Functions | |
| template<typename Iter > | |
| LinearInterpolation (Iter beg, Iter en) | |
| Constructor from a list of points. More... | |
| LinearInterpolation (const LinearInterpolation &)=default | |
| LinearInterpolation (LinearInterpolation &&)=default | |
| virtual | ~LinearInterpolation () override |
| LinearInterpolation & | operator= (const LinearInterpolation &)=default |
| LinearInterpolation & | operator= (LinearInterpolation &&)=default |
| virtual double | operator[] (double x) const override |
| Gets ordinate at x. More... | |
| const std::vector < crn::Point2DDouble > & | GetData () const noexcept |
| Access to the sorted control point. More... | |
| void | Deserialize (xml::Element &el) |
| xml::Element | Serialize (xml::Element &parent) const |
Public Member Functions inherited from crn::Cartesian2DFunction | |
| virtual | ~Cartesian2DFunction () override |
| virtual int | operator[] (int x) const |
| Gets ordinate at x. More... | |
Public Member Functions inherited from crn::Object | |
| virtual | ~Object ()=default |
Linear interpolation.
Creates a linear interpolation model representing a cloud of points.
Definition at line 40 of file CRNLinearInterpolation.h.
|
inline |
Constructor from a list of points.
| crn::ExceptionDimension | not enough samples |
| [in] | beg | the first element |
| [in] | en | the element after the last |
Definition at line 48 of file CRNLinearInterpolation.h.
|
default |
|
default |
|
inlineoverridevirtual |
Definition at line 60 of file CRNLinearInterpolation.h.
| void LinearInterpolation::Deserialize | ( | xml::Element & | el | ) |
Initializes the object from an XML element. Unsafe.
| ExceptionInvalidArgument | not a Point2DDouble |
| ExceptionNotFound | attribute not found |
| ExceptionDomain | wrong attribute |
| [in] | el | the XML element to read |
Definition at line 70 of file CRNLinearInterpolation.cpp.
|
inlinenoexcept |
Access to the sorted control point.
Definition at line 70 of file CRNLinearInterpolation.h.
|
default |
|
default |
|
overridevirtual |
Gets ordinate at x.
Implements crn::Cartesian2DFunction.
Definition at line 28 of file CRNLinearInterpolation.cpp.
| xml::Element LinearInterpolation::Serialize | ( | xml::Element & | parent | ) | const |
Dumps the object to an XML element. Unsafe.
| [in] | parent | the element in which the new element will be stored |
Definition at line 93 of file CRNLinearInterpolation.cpp.
1.8.6