public class LinearExtrapolation extends Extrapolation
| Modifier and Type | Field and Description |
|---|---|
private static int |
DEGREE
The degree of the extrapolation polynom.
|
extrapolate, sum, yk, yk2sum| Constructor and Description |
|---|
LinearExtrapolation(double[] data)
Constructs a new linear extrapolation object.
|
LinearExtrapolation(int b)
Constructs a new linear extrapolation object.
|
| Modifier and Type | Method and Description |
|---|---|
protected Polynom |
calcPolynom()
Calculates the extrapolating polynom.
|
double |
getChi2()
Calculates the discrepancy as the sum of the squared residuals.
|
protected Polynom |
updatePolynom()
Updates the extrapolating polynom assuming that not only the data but
also the data sums are correct.
|
calcSum, getN, getPolynom, predict, setData, shiftBackward, shiftForward, validprivate static final int DEGREE
public LinearExtrapolation(int b)
Extrapolation.setData(double[]) to
set the measurements.public LinearExtrapolation(double[] data)
protected Polynom calcPolynom()
Extrapolation.calcSum(int) method of the abstract parent class is used.calcPolynom in class Extrapolationprotected Polynom updatePolynom()
updatePolynom in class Extrapolationpublic double getChi2()
getChi2 in class Extrapolation