|
finMath lib documentation | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.finmath.interpolation.RationalFunctionInterpolation
public class RationalFunctionInterpolation
This class provides methodologies to interpolate given sample points by rational functions, that is, given interpolation points (xi,yi) the class provides a continuous function y = f(x) where
Nested Class Summary | |
---|---|
static class |
RationalFunctionInterpolation.ExtrapolationMethod
|
static class |
RationalFunctionInterpolation.InterpolationMethod
|
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
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)
|
Copyright © 2014 Christian P. Fries. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |