Name : perl-Math-Spline
| |
Version : 0.20.0
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp155.1.1
| Date : 2024-07-24 22:30:57
|
Group : Unspecified
| Source RPM : perl-Math-Spline-0.20.0-lp155.1.1.src.rpm
|
Size : 0.01 MB
| |
Packager : https://www_suse_com/
| |
Summary : Math::Spline Perl module
|
Description :
This package provides cubic spline interpolation of numeric data. The data is passed as references to two arrays containing the x and y ordinates. It may be used as an exporter of the numerical functions or, more easily as a class module.
The *Math::Spline* class constructor *new* takes references to the arrays of x and y ordinates of the data. An interpolation is performed using the *evaluate* method, which, when given an x ordinate returns the interpolate y ordinate at that value.
The *spline* function takes as arguments references to the x and y ordinate array, a reference to the 2nd derivatives (calculated using *Derivative2*, the low index of the interval in which to interpolate and the x ordinate in that interval. Returned is the interpolated y ordinate. Two functions are provided to look up the appropriate index in the array of x data. For random calls *binsearch* can be used - give a reference to the x ordinates and the x loopup value it returns the low index of the interval in the data in which the value lies. Where the lookups are strictly in ascending sequence (e.g. if interpolating to produce a higher resolution data set to draw a curve) the *linsearch* function may more efficiently be used. It performs like *binsearch*, but requires a third argument being the previous index value, which is incremented if necessary.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl/15.5/noarch |