Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
c2fda94
Outlier detection and outlier exclusion
NickNeck Jul 4, 2023
2182dda
Replace not Enum.empty? by Enum.any?
NickNeck Jan 15, 2025
505bd57
Remove outliers_excluded value
NickNeck Jan 15, 2025
8a8497f
Add @first_quartile and @third_quartile
NickNeck Jan 15, 2025
44d0628
Fix calculation
NickNeck Jan 15, 2025
947483c
Fix typo in outlier_bound
NickNeck Jan 15, 2025
5b5c329
Provide sources for the 1.5 iqr rule
PragTob May 2, 2025
ad7174b
WIP: (known failure) try to remove repeatedly identifying outliers
PragTob May 2, 2025
cdf1490
Further deep dive into outliers, quantiles
PragTob May 3, 2025
d769e4e
separate keys for outlier boudns
PragTob May 3, 2025
3b709c0
Simplify the determination of outliers & pass on sorted?:
PragTob May 3, 2025
0d6bdbe
Clean up the property based tests a little
PragTob May 3, 2025
20e720d
New property: shuffling the samples doesn't change the result
PragTob May 3, 2025
29a2f30
More property based properties
PragTob May 3, 2025
fee2065
exclude_statistics shown in docs, cleaned up docs and some properties…
PragTob May 3, 2025
690773f
Simplify `statistics/2` as min/max aren't needed
PragTob May 3, 2025
1da5611
Redo docs to highlight optional arguments
PragTob May 3, 2025
2b45471
Make outliers return both the outliers and remaining values just as w…
PragTob May 3, 2025
c222eea
ignore dialyzer stuff
PragTob May 3, 2025
b9a38f4
Map.new >>>> Enum.reduce in this case
PragTob May 3, 2025
e5edbb6
Get test coverage back to 100% cos we can
PragTob May 3, 2025
93620e7
Undo changes having the tests expect the input list is ordered
PragTob May 3, 2025
5b73498
Preliminary changelog
PragTob May 3, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ docs

# Don't feel like tracking that gives me what I want any more :)
.tool-versions

# dialyzer
/tools
14 changes: 13 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
## 1.1 (Unreleased)

This release adds functionality around identifying outliers.

* the Statistex struct comes with more keys: `:lower_outlier_bound`, `:upper_outlier_bound` & `:outliers`,
along with the new public functions `:outliers/2` and `:outlier_bounds/2`.
* `statistics/2` now also accepts `exclude_outliers: true` to exclude the outliers from the calculation
of statistics.
* some functions have also been updated to accept more optional arguments such as `:sorted?` to avoid unnecessary extra work.

Huge thanks for these changes go to [@NickNeck](https://github.com/NickNeck)!

## 1.0 2019-07-05

Import of the initial functionality from [benchee](github.com/bencheeorg/benchee).

Dubbed 1.0 because many people had already been running this code indirectly through benchee.
Dubbed 1.0 because many people had already been running this code indirectly through benchee.
Loading