leto / math--gsl

Perl interface to the GNU Scientific Library

This URL has Read+Write access

math--gsl / pod / Statistics.pod
100644 415 lines (276 sloc) 23.236 kb

NAME

Math::GSL::Statistics - Statistical functions


SYNOPSIS

    use Math::GSL::Statistics qw /:all/;
        
    my $data     = [17.2, 18.1, 16.5, 18.3, 12.6];
    my $mean     = gsl_stats_mean($data, 1, 5);
    my $variance = gsl_stats_variance($data, 1, 5);
    my $largest  = gsl_stats_max($data, 1, 5);
    my $smallest = gsl_stats_min($data, 1, 5);
    print qq{
    Dataset : @$data
    Sample mean           $mean 
    Estimated variance    $variance
    Largest value         $largest
    Smallest value        $smallest
    };


DESCRIPTION

Here is a list of all the functions in this module :

The following function are simply variants for int and char of the last functions:

You have to add the functions you want to use inside the qw /put_funtion_here /. You can also write use Math::GSL::Statistics qw/:all/; to use all avaible functions of the module. Other tags are also avaible, here is a complete list of all tags for this module :

all
int
char

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

 Tip : search on google: site:http://www.gnu.org/software/gsl/manual/html_node/ name_of_the_function_you_want


AUTHORS

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


COPYRIGHT AND LICENSE

Copyright (C) 2008-2009 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.