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).
|
evaluatedimensionOfDomain, dimensionOfRangeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdimensionOfDomain, dimensionOfRangepublic LinearInterpolator(OrderedPairs f)
f - the points to be interpolatedpublic void addData(OrderedPairs f)
OnlineInterpolatoraddData in interface OnlineInterpolatorf - the points to be interpolatedpublic double evaluate(double u)
UnivariateRealFunctionevaluate in interface UnivariateRealFunctionu - xCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.