C
- type of the coordinate, must be Comparable
V
- type of the value in the Tensor
public abstract class AbstractInterpolationStrategy<C,V> extends java.lang.Object implements InterpolationStrategy<C,V>
Comparable
coordinate and finding the PREVIOUS/NEXT instances in the coordinates.Constructor and Description |
---|
AbstractInterpolationStrategy(java.util.Comparator<C> comparator) |
Modifier and Type | Method and Description |
---|---|
protected C |
findIndex(java.util.List<C> orderedList,
C referencePosition,
int indexMove)
Finds the comparable coordinate before of after the slice position.
|
protected java.util.List<C> |
getOrderedListOfComparableCoordinate(Tensor<V> tensorWithTheOnlyOneCoordinateOfC,
C coordinateToInterpolate)
Extracts the ordered list of the comparable coordinate along which the interpolation will be done
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getInterpolatedValue
public AbstractInterpolationStrategy(java.util.Comparator<C> comparator)
protected java.util.List<C> getOrderedListOfComparableCoordinate(Tensor<V> tensorWithTheOnlyOneCoordinateOfC, C coordinateToInterpolate)
tensorWithTheOnlyOneCoordinateOfC
- tensor with only ONE coordinatecoordinateToInterpolate
- the coordinate to extractprotected C findIndex(java.util.List<C> orderedList, C referencePosition, int indexMove)
orderedList
- an ordered list of coordinatesreferencePosition
- indexMove
- if 0 then the PREVIOUS will be returned, if +1 the NEXT will be returned.