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
i th 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
i th coefficient of the polynomial. |
get, numVars, particularEquation, set, vars
averageScale, equals, hashCode, setUnit, unit
setType, type
public int degree()
public double coeff(int i)
i
th coefficient of the polynomial.public void setCoeff(int i, double v)
i
th coefficient of the polynomial.public double calibratedValue(double rawValue)
CalibratedAxis
public double rawValue(double calibratedValue)
CalibratedAxis
public String generalEquation()
CalibratedAxis
y = m*x + b
.public PolynomialAxis copy()
CalibratedAxis
Copyright © 2014–2022 ImageJ. All rights reserved.