public class SplineInterpolator extends Object
Constructor and Description |
---|
SplineInterpolator() |
Modifier and Type | Method and Description |
---|---|
static double |
interpolate(double[] x,
double[] y,
double[] deriv,
double x_int)
Calculates a spline interpolation at the location x_int.
|
static double |
interpolate(double[] y,
double deriv,
double x_int)
Calculates a spline interpolation at the location x_int.
|
static double |
interpolate2d(double[][] data,
double x,
double y) |
static double |
interpolate2d(double[] data,
double[] derivatives,
double x,
double y) |
public static double interpolate(double[] y, double deriv, double x_int)
y
- vector of y-valuesderiv
- second derivative at the center pointx_int
- x-position to interpolatepublic static double interpolate2d(double[] data, double[] derivatives, double x, double y)
public static double interpolate2d(double[][] data, double x, double y)
public static double interpolate(double[] x, double[] y, double[] deriv, double x_int)
x
- vector of x locationsy
- vextor of y-valuesderiv
- vector of second derivatives at the sampling pointsx_int
- x-position to interpolateCopyright © 2014–2022 European Space Agency (ESA). All rights reserved.