C - type of the coordinate, must be ComparableV - type of the value in the Tensorpublic 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, waitgetInterpolatedValuepublic 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.