Class TensorChangeDetectionOperation<C>

  • Type Parameters:
    C - type values in the tensor.
    All Implemented Interfaces:
    java.util.function.Function<Tensor<java.lang.Boolean>,​java.lang.Iterable<C>>, Conversion<Tensor<java.lang.Boolean>,​java.lang.Iterable<C>>

    public class TensorChangeDetectionOperation<C>
    extends java.lang.Object
    implements Conversion<Tensor<java.lang.Boolean>,​java.lang.Iterable<C>>
    The detection class for changes in Tensors.
    So far it only supports one dimension tensors.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Iterable<C> apply​(Tensor<java.lang.Boolean> tensor)
      Has to implement the conversion logic to convert the given object into an object of type R.
      static <C extends java.lang.Comparable<C>>
      TensorChangeDetectionOperation<C>
      of​(java.lang.Class<C> direction)  
      static <C> TensorChangeDetectionOperation<C> of​(java.lang.Class<C> direction, java.util.Comparator<? super C> comparator)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Function

        andThen, compose
    • Method Detail

      • apply

        public java.lang.Iterable<C> apply​(Tensor<java.lang.Boolean> tensor)
        Description copied from interface: Conversion
        Has to implement the conversion logic to convert the given object into an object of type R.
        Specified by:
        apply in interface Conversion<Tensor<java.lang.Boolean>,​java.lang.Iterable<C>>
        Specified by:
        apply in interface java.util.function.Function<Tensor<java.lang.Boolean>,​java.lang.Iterable<C>>
        Parameters:
        tensor - the object to convert
        Returns:
        an object of the correct return type.