public class Interp1D
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected Dbracket |
Dbrac |
protected int |
Order |
protected DblMatrix |
X |
protected DblMatrix |
Y |
protected DblMatrix |
Yerr |
protected DblMatrix |
Yhat |
Constructor and Description |
---|
Interp1D(DblMatrix X,
DblMatrix Y)
Construct an interpolation object for 1D linear interpolation.
|
Interp1D(DblMatrix X,
DblMatrix Y,
int order)
Construct an interpolation object for 1D interpolation at specified order.
|
Modifier and Type | Method and Description |
---|---|
DblMatrix |
getError()
Return the estimated error in prediction.
|
DblMatrix |
getPrediction()
Return the prediction.
|
void |
predictAt(DblMatrix xx)
Make predictions at points in vector by polynomial interpolation (or extrapolation).
|
void |
setOrder(int order)
Modify the order of the interpolation.
|
protected int Order
protected Dbracket Dbrac
protected DblMatrix Y
protected DblMatrix X
protected DblMatrix Yhat
protected DblMatrix Yerr
public Interp1D(DblMatrix X, DblMatrix Y)
public void setOrder(int order)
public DblMatrix getPrediction()
public DblMatrix getError()
public void predictAt(DblMatrix xx)
Copyright © 2011, 2013. Daniel P. Dougherty