Package com.actelion.research.util
Class FastSpline
- java.lang.Object
-
- com.actelion.research.util.FastSpline
-
public final class FastSpline extends java.lang.ObjectRepresents a polynomial spline function.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFastSpline.Polynome
-
Constructor Summary
Constructors Constructor Description FastSpline(double[] knots, FastSpline.Polynome[] polynomials)Construct a polynomial spline function with the given segment delimiters and interpolating polynomials.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FastSplinederivative()Returns the derivative of the polynomial spline function as a PolynomialSplineFunctiondoublevalue(double v)Compute the value for the function.
-
-
-
Constructor Detail
-
FastSpline
public FastSpline(double[] knots, FastSpline.Polynome[] polynomials)Construct a polynomial spline function with the given segment delimiters and interpolating polynomials.
-
-
Method Detail
-
value
public final double value(double v) throws java.lang.ArrayIndexOutOfBoundsExceptionCompute the value for the function.- Throws:
java.lang.ArrayIndexOutOfBoundsException
-
derivative
public final FastSpline derivative()
Returns the derivative of the polynomial spline function as a PolynomialSplineFunction
-
-