public class Spline extends Object
| Constructor and Description |
|---|
Spline(double[] x,
double[] y)
default constructor
|
Spline(double[] x,
double[] y,
int length,
int scrPos) |
| Modifier and Type | Method and Description |
|---|---|
double |
getValue(double x)
returns the cubic-spline interpolated value at x
|
void |
printCoefficients()
Debug out-put of the spline fix-points and coefficients
|
String |
toString() |
public Spline(double[] x,
double[] y)
x - array of horizontal coordinatesy - array of vertical coordinates Both arrays are expected to be sorted. The horizontal array should not
contain entries with the same value. The default dimension is derived from theSpline(double[] x, double[] y, int length, int scrPos)public Spline(double[] x,
double[] y,
int length,
int scrPos)
x - array of horizontal coordinatesy - array of vertical coordinateslength - length of the datascrPos - first index of the data Both arrays are expected to be sorted. The horizontal array should not
contain entries with the same value. It is implicitly required that: 0 <= srcPos <= srcPos+length
< x.length and length > 3Copyright © 2020 GSI Helmholtzzentrum für Schwerionenforschung GmbH. All rights reserved.