public class NevilleTable extends AbstractUnivariateRealFunction implements OnlineInterpolator
Function.EvaluationException| Constructor and Description |
|---|
NevilleTable()
Construct an empty Neville table.
|
NevilleTable(int n,
OrderedPairs f)
Construct a Neville table of size n, initialized with data {(x, y)}.
|
NevilleTable(OrderedPairs f)
Construct a Neville table of size n, initialized with data {(x, y)}.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addData(OrderedPairs f)
Add more points for interpolation.
|
double |
evaluate(double x)
Evaluate y = f(x).
|
double |
get(int i,
int j)
Get the value of a table entry.
|
double[][] |
getTable()
Get a copy of the Neville table.
|
int |
N()
Get the number of data points.
|
double[] |
x()
Get a copy of the x's.
|
evaluatedimensionOfDomain, dimensionOfRangeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdimensionOfDomain, dimensionOfRangepublic NevilleTable(int n,
OrderedPairs f)
n - indicative size; make this big for reservation to add new data pointsf - the points to be interpolatedpublic NevilleTable(OrderedPairs f)
f - the points to be interpolatedpublic NevilleTable()
public void addData(OrderedPairs f)
OnlineInterpolatoraddData in interface OnlineInterpolatorf - the points to be interpolatedpublic int N()
public double[][] getTable()
public double[] x()
public double get(int i,
int j)
i - row index, counting from 0j - column index, counting from 0public double evaluate(double x)
UnivariateRealFunctionevaluate in interface UnivariateRealFunctionx - xCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.