cgv
|
Template class representing a regularly (equidistant breakpoints) sampled piecewise linear function/approximation. More...
#include <piecewise_linear_function.h>
Public Member Functions | |
T | evaluate (T x) const |
Return the function value at position x. | |
Public Attributes | |
std::vector< T > | values |
The sample values of the function evenly spread over the domain. | |
interval< T > | domain = { T(0), T(1) } |
The domain (range of input values) of the function. | |
Template class representing a regularly (equidistant breakpoints) sampled piecewise linear function/approximation.
Definition at line 12 of file piecewise_linear_function.h.
|
inline |
Return the function value at position x.
Definition at line 19 of file piecewise_linear_function.h.
References cgv::math::regular_piecewise_linear_function< T >::domain, and cgv::math::regular_piecewise_linear_function< T >::values.
interval<T> cgv::math::regular_piecewise_linear_function< T >::domain = { T(0), T(1) } |
The domain (range of input values) of the function.
Definition at line 16 of file piecewise_linear_function.h.
Referenced by cgv::math::regular_piecewise_linear_function< T >::evaluate().
std::vector<T> cgv::math::regular_piecewise_linear_function< T >::values |
The sample values of the function evenly spread over the domain.
Definition at line 14 of file piecewise_linear_function.h.
Referenced by cgv::math::regular_piecewise_linear_function< T >::evaluate().