MIRA
|
1D nearest neighbor interpolator. More...
#include <math/NearestNeighborInterpolator.h>
Public Member Functions | |
bool | canExtrapolate () const |
int | samples () const |
int | samplesBefore () const |
int | samplesAfter () const |
template<typename Tx , typename Ty , typename ContainerTx , typename ContainerTy > | |
const Ty & | apply (const ContainerTx &x, const ContainerTy &y, const Tx &xx) |
1D nearest neighbor interpolator.
From two samples that are provided in the apply() method, this Filter will always return the value that is closest to the specified value xx.
If both samples have the same distance from xx, the second value will be returned.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |