Modifier and Type | Field and Description |
---|---|
static LevelMode |
EQU
Equal-area scaling - levels are spaced to provide equally sized
inter-contour regions.
|
static LevelMode |
LINEAR
Linear scaling - level values are equally spaced.
|
static LevelMode |
LOG
Logarithmic scaling - level logarithms are equally spaced
|
static LevelMode[] |
MODES
Known level mode instances.
|
Modifier | Constructor and Description |
---|---|
protected |
LevelMode(String name,
String description)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract double[] |
calculateLevels(NumberArray array,
int nLevel,
double offset,
boolean isCounts)
Calculates the contour levels for a given data array.
|
String |
getDescription()
Returns a short description of this mode.
|
String |
toString() |
public static LevelMode LINEAR
public static LevelMode LOG
public static LevelMode EQU
public static final LevelMode[] MODES
public abstract double[] calculateLevels(NumberArray array, int nLevel, double offset, boolean isCounts)
array
- data array; NaN elements are permitted and ignorednLevel
- number of requested levels; actual level count
may not be the same as this depending on dataoffset
- offset from zero of the value of the first contour,
expected in the range 0..1;
adjusting this will sweep contours over all positionsisCounts
- true if the values are counts rather than
continuously varying; if true, some adjustments
are made on the basis of the assumption that
differences of scale smaller than 1 don't make
much sensepublic String getDescription()
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.