public class CubicHermite extends Object implements Interpolation
CubicSpline
interpolation, where the interpolated splines depend on each point,
this method performs piecewise interpolation. The method for computing the control tangents is
non-unique and various approaches exist.Modifier and Type | Class and Description |
---|---|
static interface |
CubicHermite.Tangent
The method for computing the control tangent at a given index.
|
static class |
CubicHermite.Tangents |
Constructor and Description |
---|
CubicHermite()
Construct an instance with
CubicHermite.Tangents.CATMULL_ROM as the method for computing tangents. |
CubicHermite(CubicHermite.Tangent tangent)
Construct an instance with the given method to compute tangents.
|
Modifier and Type | Method and Description |
---|---|
UnivariateRealFunction |
fit(OrderedPairs op)
Fit a real valued function from a discrete set of data points.
|
public CubicHermite()
CubicHermite.Tangents.CATMULL_ROM
as the method for computing tangents.public CubicHermite(CubicHermite.Tangent tangent)
tangent
- computes the control tangents used for the interpolationpublic UnivariateRealFunction fit(OrderedPairs op)
Interpolation
fit
in interface CurveFitting
fit
in interface Interpolation
op
- a discrete set of data pointsCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.