@Equality public interface Scale
All finite values are permitted for both the data and the scale,
except as documented by the isPositiveDefinite()
method.
The LINEAR
and LOG
instances are provided
as static members of this class; to produce other instances,
see the ScaleType
class.
Modifier and Type | Field and Description |
---|---|
static Scale |
LINEAR |
static Scale |
LOG |
static Scale |
TIME |
Modifier and Type | Method and Description |
---|---|
double |
dataToScale(double d)
Forward mapping.
|
String |
dataToScaleExpression(String var)
Returns an algebraic expression representing the mapping of
a variable from data space to scale space.
|
double[] |
getParamValues()
Returns the array of parameter values that combined with the scale type
fully specify this scale.
|
Rounder |
getScaleRounder()
Returns an object which can round scale values to a value that
counts as a round number.
|
ScaleType |
getScaleType()
Returns the type of this scale.
|
Ticker |
getTicker()
Returns an object that can generate axis ticks for this scale.
|
boolean |
isLinear()
Indicates whether the scaling relation is linear.
|
boolean |
isPositiveDefinite()
If this method returns true, then only data values that are
strictly greater than zero can be mapped to the scale,
and a data value of zero is mapped to a scale value of
negative infinity.
|
double |
scaleToData(double s)
Inverse mapping.
|
static final Scale LINEAR
static final Scale LOG
static final Scale TIME
ScaleType getScaleType()
double[] getParamValues()
getScaleType().getParams()
double dataToScale(double d)
d
- data valuedouble scaleToData(double s)
s
- scale valueboolean isPositiveDefinite()
boolean isLinear()
Ticker getTicker()
Rounder getScaleRounder()
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.