Package com.actelion.research.util
Class FastSpline
- java.lang.Object
-
- com.actelion.research.util.FastSpline
-
public final class FastSpline extends java.lang.Object
Represents a polynomial spline function.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FastSpline.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 FastSpline
derivative()
Returns the derivative of the polynomial spline function as a PolynomialSplineFunctiondouble
value(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.ArrayIndexOutOfBoundsException
Compute 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
-
-