DOKK / manpages / debian 10 / libmath-gsl-perl / Math::GSL::BSpline.3pm.en
Math::GSL::BSpline(3pm) User Contributed Perl Documentation Math::GSL::BSpline(3pm)

Math::GSL::BSpline - Functions for the computation of smoothing basis splines

    use Math::GSL::BSpline qw/:all/;

This function allocates a workspace for computing B-splines of order $k. The number of breakpoints is given by $nbreak. This leads to n = $nbreak + $k - 2 basis functions. Cubic B-splines are specified by $k = 4.
This function frees the memory associated with the workspace $w.
This function returns the number of B-spline coefficients given by n = nbreak + k - 2.
This function computes the knots associated with the given breakpoints inside the vector $breakpts and stores them internally in $w->{knots}.
This function assumes uniformly spaced breakpoints on [$a,$b] and constructs the corresponding knot vector using the previously specified nbreak parameter. The knots are stored in $w->{knots}.
This function evaluates all B-spline basis functions at the position $x and stores them in the vector $B, so that the ith element of $B is B_i($x). $B must be of length n = $nbreak + $k - 2. This value may also be obtained by calling gsl_bspline_ncoeffs. It is far more efficient to compute all of the basis functions at once than to compute them individually, due to the nature of the defining recurrence relation.

For more information on the functions, we refer you to the GSL offcial documentation: http://www.gnu.org/software/gsl/manual/html_node/

Coming soon.

Jonathan "Duke" Leto <jonathan@leto.net> and Thierry Moisan <thierry.moisan@gmail.com>

Copyright (C) 2008-2011 Jonathan "Duke" Leto and Thierry Moisan

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

2019-02-23 perl v5.28.1