public static class CubicHermiteSpline1d.Knot
extends java.lang.Object
Constructor and Description |
---|
Knot() |
Knot(double x0,
double y0,
double dy0) |
Modifier and Type | Method and Description |
---|---|
void |
clearCoefficients() |
void |
computeCoefficients(CubicHermiteSpline1d.Knot next)
Computes coefficents for interpolating within the interval
between this knot and the one following it.
|
CubicHermiteSpline1d.Knot |
copy()
Creates a copy of this knot.
|
boolean |
equals(CubicHermiteSpline1d.Knot knot) |
double |
eval(double x) |
double |
evalDeriv(double x) |
double |
evalDeriv2(double x) |
double |
getA2() |
double |
getA3() |
double |
getDy() |
double |
getDy2() |
double |
getDy3() |
int |
getIndex() |
double |
getX() |
double |
getY() |
double |
getY(double alpha) |
boolean |
hasZeroDy(CubicHermiteSpline1d.Knot next)
Returns true if y'(x) contain a zero within this knot interval
(including at the interval end points).
|
boolean |
isStrictlyMonotone(CubicHermiteSpline1d.Knot next)
Returns true if y(x) is strictly monotone on the interval between this
knot and the next.
|
void |
set(double x0,
double y0,
double dy0) |
void |
setDy(double dy) |
void |
setIndex(int idx) |
void |
setX(double x) |
void |
setY(double y) |
double |
solveX(double y,
CubicHermiteSpline1d.Knot next)
Solves for x given a value of y associated with this interval.
|
double |
solveX(double y,
double alpha,
CubicHermiteSpline1d.Knot next)
Solves for x given a value of y associated with this interval.
|
java.lang.String |
toString() |
public void set(double x0, double y0, double dy0)
public double eval(double x)
public double evalDeriv(double x)
public double evalDeriv2(double x)
public void computeCoefficients(CubicHermiteSpline1d.Knot next)
public void clearCoefficients()
public double getX()
public double getY()
public double getY(double alpha)
public double getDy()
public double getDy2()
public double getDy3()
public void setX(double x)
public void setY(double y)
public void setDy(double dy)
public double getA2()
public double getA3()
public boolean hasZeroDy(CubicHermiteSpline1d.Knot next)
public boolean isStrictlyMonotone(CubicHermiteSpline1d.Knot next)
public double solveX(double y, CubicHermiteSpline1d.Knot next)
public double solveX(double y, double alpha, CubicHermiteSpline1d.Knot next)
alpha
defines an additional linear term alpha x
that should
be added to the segment's value. It is assumed that we have already
determined that a unqiue solution exists. If by some chance multiple
roots are found, we return the first.public CubicHermiteSpline1d.Knot copy()
public int getIndex()
public void setIndex(int idx)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(CubicHermiteSpline1d.Knot knot)