public class RationalFunctionInterpolation extends Object implements DoubleUnaryOperator, Serializable
Modifier and Type | Class and Description |
---|---|
static class |
RationalFunctionInterpolation.ExtrapolationMethod |
static class |
RationalFunctionInterpolation.InterpolationMethod |
Constructor and Description |
---|
RationalFunctionInterpolation(double[] points,
double[] values)
Generate a rational function interpolation from a given set of points.
|
RationalFunctionInterpolation(double[] points,
double[] 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 |
---|---|
double |
applyAsDouble(double operand) |
RationalFunctionInterpolation.InterpolationMethod |
getInterpolationMethod()
Returns the interpolation method used.
|
double |
getValue(double x)
Get an interpolated value for a given argument x.
|
static void |
main(String[] args) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
andThen, compose, identity
public RationalFunctionInterpolation(double[] points, double[] 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, double[] 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 double getValue(double x)
x
- The abscissa at which the interpolation should be performed.public static void main(String[] args)
public double applyAsDouble(double operand)
applyAsDouble
in interface DoubleUnaryOperator
Copyright © 2019. All rights reserved.