|
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 516 of file interpolate.h.
|
inline |
Return the piecewise linear interpolated value at position x.
Definition at line 523 of file interpolate.h.
References cgv::math::uniform_piecewise_linear_function< X, Y >::breakpoints, and cgv::math::uniform_piecewise_linear_function< X, Y >::domain.
| 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 520 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 518 of file interpolate.h.
Referenced by cgv::math::uniform_piecewise_linear_function< X, Y >::evaluate().