Package org.tensorics.core.reduction
Class ToFunctions<X,Y>
- java.lang.Object
-
- org.tensorics.core.reduction.ToFunctions<X,Y>
-
- Type Parameters:
X- the type of the values along the X-axis, the type of coordinate (aka 'the dimension') do be reducedY- the type of the tensor elements and also the type of the values along the Y-axis
- All Implemented Interfaces:
ReductionStrategy<X,Y,DiscreteFunction<X,Y>>
public final class ToFunctions<X,Y> extends java.lang.Object implements ReductionStrategy<X,Y,DiscreteFunction<X,Y>>
A reduction strategy which reduces all elements of dimension<X>by transforming them into aDiscreteFunctions from<X>to<Y>
-
-
Constructor Summary
Constructors Constructor Description ToFunctions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DiscreteFunction<X,Y>reduce(java.util.Map<? extends X,Y> inputValues, Position position)-
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
-
-
-
-
Method Detail
-
reduce
public DiscreteFunction<X,Y> reduce(java.util.Map<? extends X,Y> inputValues, Position position)
- Specified by:
reducein interfaceReductionStrategy<X,Y,DiscreteFunction<X,Y>>- 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
-
-