public class PolynomialAxis extends VariableAxis
CalibratedAxis that scale nonlinearly as a
polynomial of degree >= 2. Calibrated values are calculated using the
equation y = a + b*x + c*x^2 + ....| Constructor and Description |
|---|
PolynomialAxis() |
PolynomialAxis(AxisType type,
String unit,
double... coeffs) |
| Modifier and Type | Method and Description |
|---|---|
double |
calibratedValue(double rawValue)
Returns a calibrated value given a raw position along the axis.
|
double |
coeff(int i)
Gets the
ith coefficient of the polynomial. |
PolynomialAxis |
copy()
Creates an exact duplicate of this axis.
|
int |
degree()
Gets the degree of the polynomial (i.e., the largest exponent with a
non-zero coefficient).
|
String |
generalEquation()
Gets the general equation representing values along this axis; for
instance:
y = m*x + b. |
double |
rawValue(double calibratedValue)
Returns a raw value given a calibrated position along the axis.
|
void |
setCoeff(int i,
double v)
Sets the
ith coefficient of the polynomial. |
get, numVars, particularEquation, set, varsaverageScale, equals, hashCode, setUnit, unitsetType, typepublic int degree()
public double coeff(int i)
ith coefficient of the polynomial.public void setCoeff(int i,
double v)
ith coefficient of the polynomial.public double calibratedValue(double rawValue)
CalibratedAxispublic double rawValue(double calibratedValue)
CalibratedAxispublic String generalEquation()
CalibratedAxisy = m*x + b.public PolynomialAxis copy()
CalibratedAxisCopyright © 2014–2022 ImageJ. All rights reserved.