dstats

Convenience module that simply publicly imports everything else.

Modules

alloc
module dstats.alloc

Stuff having to do with memory management. Mostly a copy of RegionAllocator for now until it gets into Phobos, as well as some RegionAllocator-specific data structures.

base
module dstats.base

Relatively low-level primitives on which to build higher-level math/stat * functionality. Some are used internally, some are just things that may be * useful to users of this library. This module is starting to take on the * appearance of a small utility library. * * Note: In several functions in this module that return arrays, the last * parameter is an optional buffer for storing the return value. If this * parameter is ommitted or the buffer is not large enough, one will be * allocated on the GC heap. * * Author: David Simcha

cor
module dstats.cor

Pearson, Spearman and Kendall correlations, covariance. * * Author: David Simcha

distrib
module dstats.distrib

Probability distribution CDFs, PDFs/PMFs, and a few inverse CDFs. * * Authors: David Simcha, Don Clugston

infotheory
module dstats.infotheory

Basic information theory. Joint entropy, mutual information, conditional * mutual information. This module uses the base 2 definition of these * quantities, i.e, entropy, mutual info, etc. are output in bits. * * Author: David Simcha

kerneldensity
module dstats.kerneldensity

This module contains a small but growing library for performing kernel density estimation.

pca
module dstats.pca

This module contains a basic implementation of principal component analysis, based on the NIPALS algorithm. This is fast when you only need the first few components (which is usually the case since PCA's main uses are visualization and dimensionality reduction). However, convergence slows drastically after the first few components have been removed and most of the matrix is just noise.

random
module dstats.random

Generates random samples from a various probability distributions. * These are mostly D ports of the NumPy random number generators.

regress
module dstats.regress

A module for performing linear regression. This module has an unusual * interface, as it is range-based instead of matrix based. Values for * independent variables are provided as either a tuple or a range of ranges. * This means that one can use, for example, map, to fit high order models and * lazily evaluate certain values. (For details, see examples below.) * * Author: David Simcha

sort
module dstats.sort

A comprehensive sorting library for statistical functions. Each function takes N arguments, which are arrays or array-like objects, sorts the first and sorts the rest in lockstep. For merge and insertion sort, if the last argument is a ulong*, increments the dereference of this ulong* by the bubble sort distance between the first argument and the sorted version of the first argument. This is useful for some statistical calculations.

summary
module dstats.summary

Summary statistics such as mean, median, sum, variance, skewness, kurtosis. Except for median and median absolute deviation, which cannot be calculated online, all summary statistics have both an input range interface and an output range interface.

tests
module dstats.tests

Hypothesis testing beyond simple CDFs. All functions work with input * ranges with elements implicitly convertible to double unless otherwise noted. * * Author: David Simcha

Public Imports

dstats.alloc
public import dstats.alloc, dstats.sort, dstats.base, dstats.cor, dstats.distrib, dstats.infotheory, dstats.random, dstats.summary, dstats.tests, dstats.regress, dstats.kerneldensity, dstats.pca;
dstats.sort
public import dstats.alloc, dstats.sort, dstats.base, dstats.cor, dstats.distrib, dstats.infotheory, dstats.random, dstats.summary, dstats.tests, dstats.regress, dstats.kerneldensity, dstats.pca;
dstats.base
public import dstats.alloc, dstats.sort, dstats.base, dstats.cor, dstats.distrib, dstats.infotheory, dstats.random, dstats.summary, dstats.tests, dstats.regress, dstats.kerneldensity, dstats.pca;
dstats.cor
public import dstats.alloc, dstats.sort, dstats.base, dstats.cor, dstats.distrib, dstats.infotheory, dstats.random, dstats.summary, dstats.tests, dstats.regress, dstats.kerneldensity, dstats.pca;
dstats.distrib
public import dstats.alloc, dstats.sort, dstats.base, dstats.cor, dstats.distrib, dstats.infotheory, dstats.random, dstats.summary, dstats.tests, dstats.regress, dstats.kerneldensity, dstats.pca;
dstats.infotheory
public import dstats.alloc, dstats.sort, dstats.base, dstats.cor, dstats.distrib, dstats.infotheory, dstats.random, dstats.summary, dstats.tests, dstats.regress, dstats.kerneldensity, dstats.pca;
dstats.random
public import dstats.alloc, dstats.sort, dstats.base, dstats.cor, dstats.distrib, dstats.infotheory, dstats.random, dstats.summary, dstats.tests, dstats.regress, dstats.kerneldensity, dstats.pca;
dstats.summary
public import dstats.alloc, dstats.sort, dstats.base, dstats.cor, dstats.distrib, dstats.infotheory, dstats.random, dstats.summary, dstats.tests, dstats.regress, dstats.kerneldensity, dstats.pca;
dstats.tests
public import dstats.alloc, dstats.sort, dstats.base, dstats.cor, dstats.distrib, dstats.infotheory, dstats.random, dstats.summary, dstats.tests, dstats.regress, dstats.kerneldensity, dstats.pca;
dstats.regress
public import dstats.alloc, dstats.sort, dstats.base, dstats.cor, dstats.distrib, dstats.infotheory, dstats.random, dstats.summary, dstats.tests, dstats.regress, dstats.kerneldensity, dstats.pca;
dstats.kerneldensity
public import dstats.alloc, dstats.sort, dstats.base, dstats.cor, dstats.distrib, dstats.infotheory, dstats.random, dstats.summary, dstats.tests, dstats.regress, dstats.kerneldensity, dstats.pca;
dstats.pca
public import dstats.alloc, dstats.sort, dstats.base, dstats.cor, dstats.distrib, dstats.infotheory, dstats.random, dstats.summary, dstats.tests, dstats.regress, dstats.kerneldensity, dstats.pca;

Meta