Package noaa.coastwatch.util
Class MaxReduction
java.lang.Object
noaa.coastwatch.util.MaxReduction
- All Implemented Interfaces:
ArrayReduction
The
MaxReduction
reduces an array to a single maximum value.- Since:
- 3.5.0
- Author:
- Peter Hollemans
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte
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)
-
Constructor Details
-
MaxReduction
public MaxReduction()
-
-
Method Details
-
reduce
public byte reduce(byte[] array, int from, int to) - Specified by:
reduce
in interfaceArrayReduction
-
reduce
public short reduce(short[] array, int from, int to) - Specified by:
reduce
in interfaceArrayReduction
-
reduce
public int reduce(int[] array, int from, int to) - Specified by:
reduce
in interfaceArrayReduction
-
reduce
public long reduce(long[] array, int from, int to) - Specified by:
reduce
in interfaceArrayReduction
-
reduce
public float reduce(float[] array, int from, int to) - Specified by:
reduce
in interfaceArrayReduction
-
reduce
public double reduce(double[] array, int from, int to) - Specified by:
reduce
in interfaceArrayReduction
-