Interface ReductionStrategy<C,​T,​R>

  • Type Parameters:
    C - The type of the coordinate (aka 'the dimension') which should be reduced.
    T - The type of values that can be reduced by this strategy
    R - The type of the values after the reduction
    All Known Implementing Classes:
    Averaging, InterpolatedSlicing, RootMeanSquare, Slicing, ToFunctions

    public interface ReductionStrategy<C,​T,​R>
    A strategy which reduces the one dimension (= type of coordinate) and summarizes all the values in this direction into one. Typical examples of this are, e.g. summing up one dimension, or just slicing out at one coordinate.
    • Method Detail

      • reduce

        R reduce​(java.util.Map<? extends C,​T> inputValues,
                 Position position)
        Parameters:
        inputValues - the sub values of the tensor from which the reduction is performed
        position - a remaining position in the tensor for which reduction is performed
        Returns:
        the value of reduction