Skip to content

function nearest(M, T, T) interpolation

template <typename T, typename M>
KFR_FUNCTION T nearest(M mu, T x1, T x2)

Nearest-neighbor interpolation.

Returns x1 if mu < 0.5, else x2.

Defined at math/interpolation.hpp:42