my.stat

Members

Functions

basicStat
BasicStat basicStat(StatData data)
Undocumented in source. Be warned that the author may not have intended to support it.
bootstrap
auto bootstrap(StatData data, long minSamples)
Undocumented in source. Be warned that the author may not have intended to support it.
cdf
double cdf(NormDistribution nd, double x)
Undocumented in source. Be warned that the author may not have intended to support it.
histogram
Histogram histogram(StatData data, long nrBuckets)
Undocumented in source. Be warned that the author may not have intended to support it.
makeData
StatData makeData(T raw)

Convert user data to a representation useful for simple, statistics calculations.

mean
Mean mean(StatData data)
Undocumented in source. Be warned that the author may not have intended to support it.
median
Median median(StatData data_)
Undocumented in source. Be warned that the author may not have intended to support it.
mode
Mode mode(Histogram hist)
Undocumented in source. Be warned that the author may not have intended to support it.
pdf
NormalDistributionPdf pdf(NormDistribution nd)
Undocumented in source. Be warned that the author may not have intended to support it.
sampleStdDev
SampleStdDev sampleStdDev(StatData data, Mean mean)
Undocumented in source. Be warned that the author may not have intended to support it.
stdError
StdMeanError stdError(StatData data)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

BasicStat
struct BasicStat
Undocumented in source.
Histogram
struct Histogram
Undocumented in source.
Mean
struct Mean
Undocumented in source.
Median
struct Median
Undocumented in source.
Mode
struct Mode
Undocumented in source.
NormDistribution
struct NormDistribution
Undocumented in source.
NormalDistributionPdf
struct NormalDistributionPdf

From the C++ standard library implementation.

SampleStdDev
struct SampleStdDev

According to wikipedia this is the Corrected Sample Standard Deviation

StatData
struct StatData
Undocumented in source.
StdMeanError
struct StdMeanError
Undocumented in source.

Meta

Authors

Joakim Brännström (joakim.brannstrom@gmx.com)

This module contains some simple statistics functionality. It isn't intended to be a full blown stat packaged, that is mir. I wrote this module because I had problem using **mir** and only needed a small subset of the functionality.

The functions probably contain rounding errors etc so be aware. But it seems to work well enough for simple needs.