analysis_prep v0.1.2 AnalysisPrep
Analysis preparation for data series.
Incorporates the excellent elixir-statistics with the types of things needed for exploratory analysis and preparing to use data in machine learning algorithms.
Summary
Functions
Test for a range
Calculate the precision from a series of values
Save an array of arrays to a file
values of a map or defer to Statistics.sum
Functions
Test for a range.
A range is implemented with a struct, but behaves differently enough we need to restrict our program flow to handle things correctly.
Examples
iex> is_range 1..5
true
Calculate the precision from a series of values.
Precision is the inverse of the variance, used in some Bayesian libraries for normal distributions instead of standard deviation.
Examples
iex> variance([1,2,3,4])
1.25
iex> precision([1,2,3,4])
1 / 1.25
iex> precision([1,2,3,4])
0.8
iex> precision([])
[]
Save an array of arrays to a file
Examples
iex> save("/tmp/foo.csv", [["a","b"],[1,2],[3,4]]) && File.rm("/tmp/foo.csv")
:ok