public class TLcdEarthMultivaluedData extends Object
w x h
.
Where w
and h
are respectively the number of horizontal and vertical
multi-valued values of the data.
A value of Double.NaN
indicates transparency (no data available).
Some formats will provide the minimum and maximum values of the data. When not available,
null
will be returned for the minimum and maximum values.Constructor and Description |
---|
TLcdEarthMultivaluedData(double[][] aValues,
int aWidth,
int aHeight,
Double[][] aMinMaxValues)
Constructs a multi-valued
TLcdEarthMultivaluedData with the specified data. |
TLcdEarthMultivaluedData(double[] aValues,
int aWidth,
int aHeight,
Double aMin,
Double aMax)
Constructs a single-valued
TLcdEarthMultivaluedData with the specified data. |
Modifier and Type | Method and Description |
---|---|
int |
getHeight()
The number of values in the y direction (that is a column).
|
Double |
getMaximumValue(int aParameterIndex)
Gets the maximum value in the data for the specified parameter.
|
Double |
getMinimumValue(int aParameterIndex)
Gets the minimum value in the data for the specified parameter.
|
Double[][] |
getMinMaxValues()
Gets the extrema for all parameters.
|
int |
getParameterCount()
The number of parameters of the data.
|
double |
getValueAt(int aParameterIndex,
int aX,
int aY)
Returns the value at the given parameter and position.
|
double[][] |
getValues()
Gets the values for all parameters.
|
double[] |
getValues(int aParameterIndex)
The values for the specified parameters.
|
int |
getWidth()
The number of values in the x direction (that is a row).
|
public TLcdEarthMultivaluedData(double[] aValues, int aWidth, int aHeight, Double aMin, Double aMax)
TLcdEarthMultivaluedData
with the specified data.aValues
- the array of values. This array should contain aWidth x aHeight
values ordered in row-major form (e.g. the rows are put one after another)aWidth
- the number of values in a rowaHeight
- the number of values in a columnaMin
- the minimum value in the data, or null
aMax
- the maximum value in the data, or null
public TLcdEarthMultivaluedData(double[][] aValues, int aWidth, int aHeight, Double[][] aMinMaxValues)
TLcdEarthMultivaluedData
with the specified data.aValues
- the arrays of values for each parameter. Each array should contain aWidth
x aHeight
values ordered in row-major form (e.g. the rows are put one
after another)aWidth
- the number of values in a rowaHeight
- the number of values in a columnaMinMaxValues
- the arrays with the minimum and maximum value for each parameter. Each array
should contain 2 values: a minimum and a maximum (both can be null
). The
number of arrays should be equal to the number of value arrays.public int getWidth()
public int getHeight()
public int getParameterCount()
public double[][] getValues()
public double[] getValues(int aParameterIndex)
aParameterIndex
- the index of the parameter in [0, getParameterCount()
[public double getValueAt(int aParameterIndex, int aX, int aY)
aParameterIndex
- the parameters index in [0, getParameterCount()
[aX
- the x coordinate in [0,getWidth()
[aY
- the y coordinate in [0,getHeight()
[public Double getMinimumValue(int aParameterIndex)
Double.NaN
indicates full transparency.aParameterIndex
- the parameter index in [0, getParameterCount()
[null
if not availablepublic Double getMaximumValue(int aParameterIndex)
Double.NaN
indicates full transparency.aParameterIndex
- the parameter index in [0, getParameterCount()
[null
if not availablepublic Double[][] getMinMaxValues()
[i][0]
and the maximum at [i][1]
. Both minimum and maximum may be null
.