Class 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 PolynomialSplineFunction
      double value​(double v)
      Compute the value for the function.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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