Skip to content

MattOates/Stats

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
 
 
t
 
 
 
 
 
 
 
 
 
 
 
 

Stats Build Status

Perl6 statistics modules. Currently has some basic statistics functions revolving around averages.

Contributing

Feel free to PR anything you want. Please add some tests to t/ for any new classes/features. You can run the tests by doing:

prove -e 'perl6 -I ./lib' -lrv t/

Examples

use v6;
use Stats;

my @data = (1,2,3,4,5,6,6,3,2,9);

#Get some summary statistics similar to R
summary @data;

#Get the mean/median/mode
mean @data; median @data; mode @data;

#Get the quartiles/standard deviation of the data
iqr @data; sd @data;

About

Perl6 statistics modules

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Other 100.0%