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-axispublic final class ToFunctions<X,Y> extends java.lang.Object implements ReductionStrategy<X,Y,DiscreteFunction<X,Y>>
<X> by transforming them into a
DiscreteFunction s from <X> to <Y>| Constructor and Description |
|---|
ToFunctions() |
| Modifier and Type | Method and Description |
|---|---|
Position |
context(Position originalContext) |
DiscreteFunction<X,Y> |
reduce(java.util.Map<? extends X,Y> inputValues,
Position position) |
public DiscreteFunction<X,Y> reduce(java.util.Map<? extends X,Y> inputValues, Position position)
reduce in interface ReductionStrategy<X,Y,DiscreteFunction<X,Y>>inputValues - the sub values of the tensor from which the reduction is performedposition - a remaining position in the tensor for which reduction is performedpublic Position context(Position originalContext)
context in interface ReductionStrategy<X,Y,DiscreteFunction<X,Y>>