Class UniformBSpline

java.lang.Object
ffx.numerics.spline.UniformBSpline

public class UniformBSpline extends Object
Static methods to generate and differentiate uniform b-Splines.
Since:
1.0
Author:
Michael J. Schnieders
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    bSpline(double x, int order, double[] coefficients)
    Generate uniform b-Spline coefficients.
    static void
    bSplineDerivatives(double x, int order, int deriveOrder, double[][] coefficients, double[][] work)
    Generate uniform b-Spline coefficients and their derivatives.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • bSpline

      public static void bSpline(double x, int order, double[] coefficients)
      Generate uniform b-Spline coefficients.
      Parameters:
      x - A double in the range [0.0, 1.0] where 0.5 is over a grid point (0.0 is half-way to the previous grid point, and 1.0 is half-way to the next grid point).
      order - b-Spline order (degree + 1).
      coefficients - b-Spline coefficients (n coefficients for order n).
      Since:
      1.0
    • bSplineDerivatives

      public static void bSplineDerivatives(double x, int order, int deriveOrder, double[][] coefficients, double[][] work)
      Generate uniform b-Spline coefficients and their derivatives.
      Parameters:
      x - A double in the range [0.0, 1.0].
      order - b-Spline order (degree + 1).
      deriveOrder - Derivative order.
      0 = no derivative.
      1 = 1rst derivative.
      It must not be greater than the b-Spline degree (order - 1).
      The method is currently limited to deriveOrder .LE. 5.
      coefficients - The b-Spline coefficient array of size [order][deriveOrder + 1].
      work - A work array of size [order][order].
      Since:
      1.0