public class RationalFunctionInterpolation extends Object
Modifier and Type | Class and Description |
---|---|
static class |
RationalFunctionInterpolation.ExtrapolationMethod |
static class |
RationalFunctionInterpolation.InterpolationMethod |
Constructor and Description |
---|
RationalFunctionInterpolation(double[] points,
RandomVariable[] values)
Generate a rational function interpolation from a given set of points.
|
RationalFunctionInterpolation(double[] points,
RandomVariable[] values,
RationalFunctionInterpolation.InterpolationMethod interpolationMethod,
RationalFunctionInterpolation.ExtrapolationMethod extrapolationMethod)
Generate a rational function interpolation from a given set of points using
the specified interpolation and extrapolation method.
|
Modifier and Type | Method and Description |
---|---|
RationalFunctionInterpolation.InterpolationMethod |
getInterpolationMethod()
Returns the interpolation method used.
|
RandomVariable |
getValue(double x)
Get an interpolated value for a given argument x.
|
public RationalFunctionInterpolation(double[] points, RandomVariable[] values)
points
- The array of the xi sample points of a function y=f(x).values
- The corresponding array of the yi sample values to the sample points xi.public RationalFunctionInterpolation(double[] points, RandomVariable[] values, RationalFunctionInterpolation.InterpolationMethod interpolationMethod, RationalFunctionInterpolation.ExtrapolationMethod extrapolationMethod)
points
- The array of the xi sample points of a function y=f(x).values
- The corresponding array of the yi sample values to the sample points xi.interpolationMethod
- The interpolation method to be used.extrapolationMethod
- The extrapolation method to be used.public RationalFunctionInterpolation.InterpolationMethod getInterpolationMethod()
public RandomVariable getValue(double x)
x
- The abscissa at which the interpolation should be performed.Copyright © 2019. All rights reserved.