Package org.tensorics.core.reduction
Class InterpolatedSlicing<C,E>
- java.lang.Object
-
- org.tensorics.core.reduction.Slicing<C,E>
-
- org.tensorics.core.reduction.InterpolatedSlicing<C,E>
-
- Type Parameters:
E
- the type of the hold valuesC
- the type of the interpolation direction, must be Comparable
- All Implemented Interfaces:
ReductionStrategy<C,E,E>
public class InterpolatedSlicing<C,E> extends Slicing<C,E>
The extended slicing strategy that involves the possibility to interpolate over the specified, comparable coordinate
-
-
Field Summary
-
Fields inherited from class org.tensorics.core.reduction.Slicing
slicePosition
-
-
Constructor Summary
Constructors Constructor Description InterpolatedSlicing(C slicePosition, InterpolationStrategy<C,E> strategy, Tensor<E> tensor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description E
reduce(java.util.Map<? extends C,E> inputValues, Position position)
-
-
-
Method Detail
-
reduce
public E reduce(java.util.Map<? extends C,E> inputValues, Position position)
- Specified by:
reduce
in interfaceReductionStrategy<C,E,E>
- Overrides:
reduce
in classSlicing<C,E>
- Parameters:
inputValues
- the sub values of the tensor from which the reduction is performedposition
- a remaining position in the tensor for which reduction is performed- Returns:
- the value of reduction
-
-