|
cgv
|
Template class representing a piecewise linear function with uniformly spaced breakpoints that maps from X to Y. More...
#include <interpolate.h>
Public Member Functions | |
| Y | evaluate (X x) const |
| Return the piecewise linear interpolated value at position x. | |
Public Attributes | |
| interval< X > | domain = { X(0), X(1) } |
| The input parameter domain. | |
| std::vector< Y > | breakpoints |
| The points that define the piecewise intervals and are assumed to be spaced uniformly over the domain. | |
Template class representing a piecewise linear function with uniformly spaced breakpoints that maps from X to Y.
Definition at line 425 of file interpolate.h.
|
inline |
Return the piecewise linear interpolated value at position x.
Definition at line 432 of file interpolate.h.
References cgv::math::uniform_piecewise_linear_function< X, Y >::breakpoints, cgv::math::uniform_piecewise_linear_function< X, Y >::domain, and cgv::math::interval< T >::size().
| std::vector<Y> cgv::math::uniform_piecewise_linear_function< X, Y >::breakpoints |
The points that define the piecewise intervals and are assumed to be spaced uniformly over the domain.
Definition at line 429 of file interpolate.h.
Referenced by cgv::math::uniform_piecewise_linear_function< X, Y >::evaluate().
| interval<X> cgv::math::uniform_piecewise_linear_function< X, Y >::domain = { X(0), X(1) } |
The input parameter domain.
Definition at line 427 of file interpolate.h.
Referenced by cgv::math::uniform_piecewise_linear_function< X, Y >::evaluate().