Header-only library of numeric maps for C++14.
Interpolation function with a std::map
like interface. Each {key,value}
pair is a node (in the mathematical sense) of {domain,co-domain}
values.
Differences to std::map
:
- nodes are stored in a sorted, contiguous array (
vector_map
) operator [] (size_t)
allows indexed access to the nodesoperator () (const Key& x)
returns the (interpolated co-domain) value at (domain) pointx
piecewise_constant
piecewise_linear
piecewise_log_linear
: piece-wise linear interpolation at position log(x)
Gradients are polymorphic interpolating functions; think "gradient" as in "color gradient".
gradient
: polymorphic base class "interface"interpolating_gradient
: gradient based oninterpolating_map
- requires C++14 conforming compiler
- tested with g++ 6.1