C - the type of the coordinates of the concerned dimensionV - the type of the tensor values to resamplepublic class LinearInterpolationResampler<C,V> extends java.lang.Object implements SingleDimensionResampler<C,V>
| Constructor and Description |
|---|
LinearInterpolationResampler(ExtendedField<V> field,
java.util.function.Function<C,V> toFieldElementConversion) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canResample(java.util.Set<C> coordinates,
C coordinate)
Has to return
true if the resampling will be possible, provided the the given parameters. |
V |
resample(java.util.Set<C> coordinates,
java.util.function.Function<C,V> yFunction,
C coordinate)
Performs the actual resampling using the provided input.
|
public LinearInterpolationResampler(ExtendedField<V> field, java.util.function.Function<C,V> toFieldElementConversion)
public V resample(java.util.Set<C> coordinates, java.util.function.Function<C,V> yFunction, C coordinate)
SingleDimensionResamplerresample in interface SingleDimensionResampler<C,V>coordinates - the supporting points, which can be used as input to resampleyFunction - a function providing values of type V for all given coordinatescoordinate - the coordinate at which the resampling shall be performedtrue if the resampling will be possible with the provided input, false if not.public boolean canResample(java.util.Set<C> coordinates, C coordinate)
SingleDimensionResamplertrue if the resampling will be possible, provided the the given parameters.canResample in interface SingleDimensionResampler<C,V>coordinates - the supporting points, which can be used as input to resamplecoordinate - the coordinate at which the resampling shall be performedtrue if the resampling will be possible with the provided input, false if not.