V
- the type of the elements of the field.public class Averaging<V> extends ScalarIterableSupport<V> implements ReductionStrategy<java.lang.Object,V,V>
Constructor and Description |
---|
Averaging(ExtendedField<V> field) |
Modifier and Type | Method and Description |
---|---|
Position |
context(Position originalContext) |
V |
reduce(java.util.Map<?,V> inputValues,
Position position) |
averageOf, rmsOf, sizeOf, stdOf, sumOf, sumOfSquaresOf, varOf
absoluteValueOf, calculate, countOf, field, inverseOf, negativeOf, one, squareOf, squareRootOf, testIf, two, zero
public Averaging(ExtendedField<V> field)
public V reduce(java.util.Map<?,V> inputValues, Position position)
reduce
in interface ReductionStrategy<java.lang.Object,V,V>
inputValues
- the sub values of the tensor from which the reduction is performedposition
- a remaining position in the tensor for which reduction is performed