Class NeighborhoodFilters


  • public final class NeighborhoodFilters
    extends Object
    • Method Detail

      • defaultMax

        public static <T,​V> void defaultMax​(Computers.Arity1<Iterable<T>,​V> op,
                                                  Neighborhood<T> neighborhood,
                                                  V output)
        Computes the maximum over a Neighborhood, and stores it in the passed output container
        Type Parameters:
        T - the Type of the elements of neighborhood
        V - the Type of the output container
        Parameters:
        op - the Op able to compute the maximum
        neighborhood - the Neighborhood to compute over
        output - the preallocated output container
        Implementation Note:
        op name='filter.max', type='Computer'
      • defaultMean

        public static <T,​V> void defaultMean​(Computers.Arity1<Iterable<T>,​V> op,
                                                   Neighborhood<T> neighborhood,
                                                   V output)
        Computes the mean over a Neighborhood, and stores it in the passed output container
        Type Parameters:
        T - the Type of the elements of neighborhood
        V - the Type of the output container
        Parameters:
        op - the Op able to compute the mean
        neighborhood - the Neighborhood to compute over
        output - the preallocated output container
        Implementation Note:
        op name='filter.mean',type='Computer'
      • defaultMedian

        public static <T,​V> void defaultMedian​(Computers.Arity1<Iterable<T>,​V> op,
                                                     Neighborhood<T> neighborhood,
                                                     V output)
        Computes the median over a Neighborhood, and stores it in the passed output container
        Type Parameters:
        T - the Type of the elements of neighborhood
        V - the Type of the output container
        Parameters:
        op - the Op able to compute the median
        neighborhood - the Neighborhood to compute over
        output - the preallocated output container
        Implementation Note:
        op name='filter.median', type='Computer'
      • defaultMinimum

        public static <T,​V> void defaultMinimum​(Computers.Arity1<Iterable<T>,​V> op,
                                                      Neighborhood<T> neighborhood,
                                                      V output)
        Computes the minimum over a Neighborhood, and stores it in the passed output container
        Type Parameters:
        T - the Type of the elements of neighborhood
        V - the Type of the output container
        Parameters:
        op - the Op able to compute the minimum
        neighborhood - the Neighborhood to compute over
        output - the preallocated output container
        Implementation Note:
        op name='filter.min', type='Computer'
      • defaultVariance

        public static <T,​V> void defaultVariance​(Computers.Arity1<Iterable<T>,​V> op,
                                                       Neighborhood<T> neighborhood,
                                                       V output)
        Computes the variance over a Neighborhood, and stores it in the passed output container
        Type Parameters:
        T - the Type of the elements of neighborhood
        V - the Type of the output container
        Parameters:
        op - the Op able to compute the variance
        neighborhood - the Neighborhood to compute over
        output - the preallocated output container
        Implementation Note:
        op name='filter.variance', type='Computer'