occ
|
Class for interpolating one-dimensional functions. More...
#include <interpolator.h>
Public Member Functions | |
Interpolator1D () | |
Default constructor. | |
template<typename F > | |
Interpolator1D (const F &f, T left, T right, size_t N) | |
Construct an Interpolator1D from a given function. | |
OCC_ALWAYS_INLINE T | operator() (T x) const |
Evaluate the interpolated function at the value provided. | |
OCC_ALWAYS_INLINE T | gradient (T x) const |
Eigen::Array< T, Eigen::Dynamic, 1 > | operator() (const Eigen::Array< T, Eigen::Dynamic, 1 > &xs) const |
T | find_threshold (T threshold_value) const |
Class for interpolating one-dimensional functions.
Templated by the type of data to be interpolated, and the DomainMapping (default = Linear)
|
inline |
Default constructor.
|
inline |
Construct an Interpolator1D from a given function.
f | the function to interpolate |
left | the lowest (left most) value in the domain |
right | the highest (right most) value in the domain |
N | the number of points to sample in the domain [left, right] |
Will evaluate the function f N times, and map the domain values internally based on the specified DomainMapping....
|
inline |
|
inline |
|
inline |
|
inline |
Evaluate the interpolated function at the value provided.
x | the value where the interpolated function should be evaluated. |
The provided value will be mapped based on DomainMapping. If the provided value falls outside the domain, it will be yield the f(left) and f(right) values from the original construction of the Interpolator1D.