logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Math::GSL::Rstat - Running Statistical functions

Authors

       Jonathan "Duke" Leto <jonathan@leto.net>

Description

       NOTE: This module requires GSL 2.0 or higher.

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

Name

       Math::GSL::Rstat - Running Statistical functions

Synopsis

           use Math::GSL::Rstat qw /:all/;
           my @data = (17.2, 18.1, 16.5, 18.3, 12.6);
           map { gsl_rstat_add( $_, $rstat) } @data;
           my $rstat    = gsl_rstat_alloc();
           my $mean     = gsl_rstat_mean($rstat);
           my $variance = gsl_rstat_variance($rstat);
           my $largest  = gsl_rstat_max($rstat);
           my $smallest = gsl_rstat_min($rstat);
           my $sd       = gsl_rstat_sd($rstat);
           my $rms      = gsl_rstat_rms($rstat);
           my $sd_mean  = gsl_rstat_sd_mean($rstat);
           my $median   = gsl_rstat_median($rstat);
           my $skew     = gsl_rstat_skew($rstat);
           my $kurtosis = gsl_rstat_kurtosis($rstat);
           my $n        = gsl_rstat_n($rstat);

See Also