Read and write delimited text files, compute descriptive statistics, and generate random variates in Chez Scheme.
$ akku install chez-stats
For more information on getting started with Akku, see this blog post.
Clone or download this repository. Move chez-stats.sls and chez-stats folder from downloaded and unzipped folder to one of the directories listed when you run (library-directories) in Chez Scheme. For more information on installing Chez Scheme libraries, see blog posts for macOS and Windows or Ubuntu.
(import (chez-stats))> (mean '(1 2 3 4 5))
3
> (correlation (iota 10) (iota 10) 'pearson)
1.0
> (random-sample 5 'normal 100 15)
(107.2 88.6 115.3 96.1 102.8)Full API documentation is available at https://hinkelman.github.io/chez-stats/.
count-unique, correlation, cumulative-sum, diff, interquartile-range, kurtosis, mean, median, mode, quantile, rank, rep, rle, sign, skewness, standard-deviation, sum, unique, variance, weighted-mean
read-delim, write-delim
random-bernoulli, random-beta, random-beta-binomial, random-binomial, random-exponential, random-gamma, random-geometric, random-lognormal, random-multinomial, random-negative-binomial, random-normal, random-pareto, random-poisson, random-uniform, random-sample, repeat, shuffle