C
- the type of the coordinates in the direction to resampleV
- the type of the values of the tensorspublic interface SingleDimensionResampler<C,V>
Modifier and Type | Method and Description |
---|---|
boolean |
canResample(java.util.Set<C> supportCoordinates,
C resampleCoordinate)
Has to return
true if the resampling will be possible, provided the the given parameters. |
V |
resample(java.util.Set<C> supportCoordinates,
java.util.function.Function<C,V> valuesCallback,
C resampleCoordinate)
Performs the actual resampling using the provided input.
|
boolean canResample(java.util.Set<C> supportCoordinates, C resampleCoordinate)
true
if the resampling will be possible, provided the the given parameters.supportCoordinates
- the supporting points, which can be used as input to resampleresampleCoordinate
- the coordinate at which the resampling shall be performedtrue
if the resampling will be possible with the provided input, false
if not.V resample(java.util.Set<C> supportCoordinates, java.util.function.Function<C,V> valuesCallback, C resampleCoordinate)
supportCoordinates
- the supporting points, which can be used as input to resamplevaluesCallback
- a function providing values of type V for all given coordinatesresampleCoordinate
- the coordinate at which the resampling shall be performedtrue
if the resampling will be possible with the provided input, false
if not.java.util.NoSuchElementException
- if the resampling cannot be performed for any reason