Data Tome 1.6.3 - More Analysis
Changelog
Full Changelog: 1.0.0...1.6.3
- Add highest_mode() and lowest_mode() methods, partial_highest_mode and partial_lowest_mode.
Add a method to calculate the mode, and return the lowest if there are multiple numbers with equal counts.
- Add median() and partial_median() methods.
- Add methods to return min() and max() values currently stored in the array, partial_min() and partial_max().
- Add count() and partial_count() as a point_count() alias on DataTomeAnalysis.
- Add mean() and partial_mean() as a get() alias on DataTomeAnalysis.
Fix
- Add partials_memory().
- Remove partial_size_of_memory().
Makes more sense to calculate the memory spent by all partials together than a single one, due to the partials nature of not copying the entire array.
- Fix: change partial_std() and partial_var() to divide by partial_point_count(), not by the allocated size.
- Fix std method to divide by the point_count, not by the reserved size
- Change resize to grow method
Change resize to only allow the array to get bigger, avoiding data inconsistencies among other features and future additions. Also, shrinking the array implies deleting data as a non-clear side effect.
Unit Tests
- (DataTomeAnalysis) Rename analysis instances to be more meaningful on tests.
- Add test to memory size and partials memory size.