47 #ifndef _MIRA_NEARESTNEIGHBORINTERPOLATOR_H__
48 #define _MIRA_NEARESTNEIGHBORINTERPOLATOR_H__
76 template <
typename Tx,
typename Ty,
typename ContainerTx,
typename ContainerTy>
77 const Ty&
apply(
const ContainerTx& x,
const ContainerTy& y,
const Tx& xx)
80 assert(x.size()==y.size());
90 if(xx-x.front() < x.back()-xx)
1D nearest neighbor interpolator.
Definition: NearestNeighborInterpolator.h:68
int samplesAfter() const
Definition: NearestNeighborInterpolator.h:74
int samples() const
Definition: NearestNeighborInterpolator.h:72
IntervalFilter base class/concept.
Concept and base class for all Interpolators and Filters.
Definition: IntervalFilter.h:61
bool canExtrapolate() const
Definition: NearestNeighborInterpolator.h:71
int samplesBefore() const
Definition: NearestNeighborInterpolator.h:73
const Ty & apply(const ContainerTx &x, const ContainerTy &y, const Tx &xx)
Definition: NearestNeighborInterpolator.h:77