public class LinearInterpolator extends UnivariateRealFunction 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).
|
dimensionOfDomain, dimensionOfRange, evaluatepublic 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 class UnivariateRealFunctionu - x