Math::GSL::Interp - Functions for performing interpolation
use Math::GSL::Interp qw/:all/;
Here is a list of all the functions included in this module :
gsl_interp_accel_alloc()
gsl_interp_accel_find($a, $x_array, $size, $x)
gsl_interp_accel_reset
gsl_interp_accel_free($a)
gsl_interp_alloc($T, $alloc)
gsl_interp_init($interp, $xa, $ya, $size)
gsl_interp_name($interp)
gsl_interp_min_size($interp)
gsl_interp_eval_e($interp, $xa, $ya, $x, $acc)
gsl_interp_eval($interp, $xa, $ya, $x, $acc)
gsl_interp_eval_deriv_e($interp, $xa, $ya, $x, $acc)
gsl_interp_eval_deriv($interp, $xa, $ya, $x, $acc)
gsl_interp_eval_deriv2_e($interp, $xa, $ya, $x, $acc)
gsl_interp_eval_deriv2($interp, $xa, $ya, $x, $acc)
gsl_interp_eval_integ_e($interp, $xa, $ya, $a, $b, $acc)
gsl_interp_eval_integ($interp, $xa, $ya, $a, $b, $acc)
gsl_interp_free($interp)
gsl_interp_bsearch($x_array, $x, $index_lo, $index_hi)
This module also includes the following constants :
$gsl_interp_linear
$gsl_interp_polynomial
$gsl_interp_cspline
$gsl_interp_cspline_periodic
$gsl_interp_akima
$gsl_interp_akima_periodic
use Math::GSL::Interp qw/:all/; my $x_array = [ 0.0, 1.0, 2.0, 3.0, 4.0 ]; # check that we get the last interval if x == last value $index_result = gsl_interp_bsearch($x_array, 4.0, 0, 4); print "The last interval is $index_result \n";
Jonathan Leto <jonathan@leto.net> and Thierry Moisan <thierry.moisan@gmail.com>
Copyright (C) 2008 Jonathan Leto and Thierry Moisan
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Math::GSL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Math::GSL
CPAN shell
perl -MCPAN -e shell install Math::GSL
For more information on module installation, please visit the detailed CPAN module installation guide.