Class RootMeanSquare<S>

  • Type Parameters:
    S - the type of the scalars (field elements) on which all the operations are based on.
    All Implemented Interfaces:
    BasicOperationSupport<S>, ReductionStrategy<java.lang.Object,​S,​S>

    public class RootMeanSquare<S>
    extends ScalarIterableSupport<S>
    implements ReductionStrategy<java.lang.Object,​S,​S>
    Performs an rms calculation over all in one direction of a tensor, if used for tensor reduction.
    • Constructor Detail

    • Method Detail

      • reduce

        public S reduce​(java.util.Map<? extends java.lang.Object,​S> inputValues,
                        Position position)
        Specified by:
        reduce in interface ReductionStrategy<java.lang.Object,​S,​S>
        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