public class OngoingDetection
extends java.lang.Object
| Constructor and Description |
|---|
OngoingDetection(Tensor<java.lang.Boolean> tensor) |
| Modifier and Type | Method and Description |
|---|---|
<C extends java.lang.Comparable<C>> |
changesAlong(java.lang.Class<C> direction)
Defines the direction of the tensor in which the searching of the changes will be performed.
|
<C> java.lang.Iterable<C> |
changesAlong(java.lang.Class<C> direction,
java.util.Comparator<C> comparator) |
public OngoingDetection(Tensor<java.lang.Boolean> tensor)
public <C extends java.lang.Comparable<C>> java.lang.Iterable<C> changesAlong(java.lang.Class<C> direction)
This class must implement Comparable.
direction - the dimension in which direction to searchpublic <C> java.lang.Iterable<C> changesAlong(java.lang.Class<C> direction,
java.util.Comparator<C> comparator)