Package noaa.coastwatch.util
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 TypeMethodDescriptionbytereduce(byte[] array, int from, int to) doublereduce(double[] array, int from, int to) floatreduce(float[] array, int from, int to) intreduce(int[] array, int from, int to) longreduce(long[] array, int from, int to) shortreduce(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)
-