Package org.tensorics.core.reduction
Class Averaging<V>
- java.lang.Object
-
- org.tensorics.core.scalar.lang.ScalarSupport<V>
-
- org.tensorics.core.iterable.lang.ScalarIterableSupport<V>
-
- org.tensorics.core.reduction.Averaging<V>
-
- Type Parameters:
V
- the type of the elements of the field.
- All Implemented Interfaces:
BasicOperationSupport<V>
,ReductionStrategy<java.lang.Object,V,V>
public class Averaging<V> extends ScalarIterableSupport<V> implements ReductionStrategy<java.lang.Object,V,V>
-
-
Constructor Summary
Constructors Constructor Description Averaging(ExtendedField<V> field)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description V
reduce(java.util.Map<?,V> inputValues, Position position)
-
Methods inherited from class org.tensorics.core.iterable.lang.ScalarIterableSupport
averageOf, rmsOf, sizeOf, stdOf, sumOf, sumOfSquaresOf, varOf
-
Methods inherited from class org.tensorics.core.scalar.lang.ScalarSupport
absoluteValueOf, calculate, countOf, field, inverseOf, negativeOf, one, squareOf, squareRootOf, testIf, two, zero
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.tensorics.core.reduction.ReductionStrategy
context
-
-
-
-
Constructor Detail
-
Averaging
public Averaging(ExtendedField<V> field)
-
-
Method Detail
-
reduce
public V reduce(java.util.Map<?,V> inputValues, Position position)
- Specified by:
reduce
in interfaceReductionStrategy<java.lang.Object,V,V>
- 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
-
-