Interface ArrayReduction

All Known Implementing Classes:
GeoMeanReduction, LastReduction, MaxReduction, MeanReduction, MedianReduction, MinReduction

public interface ArrayReduction
An array reduction is an operator that reduces an array to a single value. Each function takes an array of values and from (inclusive) / to (exclusive) pair similar to the java.util.Arrays methods and returns a single value.
Since:
3.5.0
Author:
Peter Hollemans
  • Method Summary

    Modifier and Type
    Method
    Description
    byte
    reduce(byte[] array, int from, int to)
     
    double
    reduce(double[] array, int from, int to)
     
    float
    reduce(float[] array, int from, int to)
     
    int
    reduce(int[] array, int from, int to)
     
    long
    reduce(long[] array, int from, int to)
     
    short
    reduce(short[] array, int from, int to)
     
  • Method Details

    • reduce

      byte reduce(byte[] array, int from, int to)
    • reduce

      short reduce(short[] array, int from, int to)
    • reduce

      int reduce(int[] array, int from, int to)
    • reduce

      long reduce(long[] array, int from, int to)
    • reduce

      float reduce(float[] array, int from, int to)
    • reduce

      double reduce(double[] array, int from, int to)