public class DataFit
extends java.lang.Object
Constructor and Description |
---|
DataFit() |
Modifier and Type | Method and Description |
---|---|
static double |
interpolateLinear(double[] x,
double[] y)
Interpolation between two data points with linear function
|
static double |
interpolateLinear(double x1,
double x2,
double y1,
double y2,
double val)
Interpolation between two data points with linear function
|
static double |
interpolatePowerLaw(double[] x,
double[] y)
Interpolation between two data points with power law function of the
form y = a * x^b
|
static double |
interpolatePowerLaw(double x1,
double x2,
double y1,
double y2,
double val)
Interpolation between two data points with power law function of the
form y = a * x^b
|
public static double interpolateLinear(double[] x, double[] y)
x
- array of three elements [X1, X, X2]y
- array [Y1, Y, Y2]public static double interpolateLinear(double x1, double x2, double y1, double y2, double val)
x1
- x2
- y1
- y2
- val
- value of X at which to interpolatepublic static double interpolatePowerLaw(double[] x, double[] y)
x
- array of three elements [X1, X, X2]y
- array [Y1, Y, Y2]public static double interpolatePowerLaw(double x1, double x2, double y1, double y2, double val)
x1
- x2
- y1
- y2
-