Chi2fit.Statistics.convert_cdf

You're seeing just the function convert_cdf, go back to Chi2fit.Statistics module for more information.

Specs

convert_cdf({cdf(), range()}) :: [{float(), float(), float(), float()}]

Converts a CDF function to a list of data points.

Example

iex> convert_cdf {fn x->{:math.exp(-x),:math.exp(-x)/16,:math.exp(-x)/4} end, {1,4}}
[{1, 0.36787944117144233, 0.022992465073215146, 0.09196986029286058},
 {2, 0.1353352832366127, 0.008458455202288294, 0.033833820809153176},
 {3, 0.049787068367863944, 0.0031116917729914965, 0.012446767091965986},
 {4, 0.01831563888873418, 0.0011447274305458862, 0.004578909722183545}]