Module reservoirs::utils [−][src]
Expand description
Basic utility functions, largely reinventing the wheel.
Functions
Anderson-Darling Two-Sample Test
Bootstrap a synthetic dataset from observed samples.
Estimate the cumulative distribution function (CDF) of a vector of observations.
Estimate the cumulative distribution function (CDF) of a vector of observations x
,
binned into bins
number of obs to preserve memory on large vectors.
Appends one vector to another and generates the CDF of observations.
Returns the cdf given a pmf, implementing a cumulative sum over f64 values.
take the cdf of observations over a range of discrete values
Chi-squared goodness-of-fit test.
Convolve frequency distributions along an index of values.
Less convoluted convolution.
Generates expected values from a Poisson distribution for a single event envelope.
Goodness of fit test suite.
Produce integer-like index of f64 values from generic range.
Calculates the low point along y
and returns the value of x
at the low point.
Calculate the mean of a slice of f64 values.
Calculate the median of a slice of f64 values.
pmf from observations
Calculate the quantiles for a box-and-whisker plot (2.5%, 25%, 50%, 75%, 97.5%).
Read data from csv file.
Write statistical results to csv file.
Timed wrapper for functions.