DarkMatter.Decimals.Variance (DarkMatter v1.1.4) View Source
Decimal variance functions
Link to this section Summary
Functions
Determine if a list is a uniform set of DarkMatter.numeric/0
.
Max entries percent variance relative to the mean
Calculate variance
Variance percent relative to the mean
Link to this section Types
Specs
minmax() :: {DarkMatter.strict_numeric(), DarkMatter.strict_numeric()}
Link to this section Functions
Specs
decimal_uniform?([DarkMatter.numeric()]) :: boolean()
Determine if a list is a uniform set of DarkMatter.numeric/0
.
Link to this function
max_variance_percent(list, default \\ %{max_variance_percent: {100, 100}, variance: {0, 0}, variance_percent: {0, 100}}.max_variance_percent)
View SourceSpecs
max_variance_percent([DarkMatter.numeric()], minmax()) :: Decimal.t()
Max entries percent variance relative to the mean
Specs
variance([DarkMatter.numeric()]) :: Decimal.t()
Calculate variance
Link to this function
variance_percent(list, default \\ %{max_variance_percent: {100, 100}, variance: {0, 0}, variance_percent: {0, 100}}.variance_percent)
View SourceSpecs
variance_percent([DarkMatter.numeric()], minmax()) :: Decimal.t()
Variance percent relative to the mean