public class MinMax
extends java.lang.Object
Constructor and Description |
---|
MinMax(int numberOfBands)
Constructs a MinMax object having the specified
number of bands.
|
Modifier and Type | Method and Description |
---|---|
double |
getMax()
Returns the maximum of all included values over all bands.
|
double |
getMax(int band)
Returns the maximum of all included values in the specified band.
|
double |
getMin()
Returns the minimum of all included values over all bands.
|
double |
getMin(int band)
Returns the minimum of all included values in the specified band.
|
void |
include(double val,
int band)
A value is included in the specified band.
|
public MinMax(int numberOfBands)
numberOfBands
- The number of bands in the data source.public void include(double val, int band)
val
- A value that exists in the specified bandband
- A band index in the range 0 to numberOfBands-1.public double getMax(int band)
band
- A band index in the range 0 to numberOfBands-1.public double getMin(int band)
band
- A band index in the range 0 to numberOfBands-1.public double getMax()
public double getMin()