public class LinearInterpolator extends AbstractUnivariateRealFunction implements OnlineInterpolator
Function.EvaluationException
Constructor and Description |
---|
LinearInterpolator(OrderedPairs f)
Construct a univariate function by linearly interpolating between adjacent points.
|
Modifier and Type | Method and Description |
---|---|
void |
addData(OrderedPairs f)
Add more points for interpolation.
|
double |
evaluate(double u)
Evaluate y = f(x).
|
evaluate
dimensionOfDomain, dimensionOfRange
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dimensionOfDomain, dimensionOfRange
public LinearInterpolator(OrderedPairs f)
f
- the points to be interpolatedpublic void addData(OrderedPairs f)
OnlineInterpolator
addData
in interface OnlineInterpolator
f
- the points to be interpolatedpublic double evaluate(double u)
UnivariateRealFunction
evaluate
in interface UnivariateRealFunction
u
- xCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.