Matt Borland
699d326f64
Implemented mode and associated tests ( #390 )
...
* Implemented mode and associated tests
* Clarity and complexity changes
* Added google benchmark
* Small changes to mode. More tests.
* Seperated into sorted and non-sorted functions
* Fixed data types and removed copying
* Fixed bounds checking
* Additional tests and cleanup.
* Added tests for std::list and std::forward_list
* Small testing changes and documentation
* Added modes memory allocation and faster insertion
* Changed return type, and modified tests
* Removed copied iterator and edge cases.
* Documentation fixes
2020-07-09 13:28:29 -04:00
NAThompson
87bb7d29fb
Readable code for interquartile_range.
2019-12-31 12:53:01 -05:00
NAThompson
ff528a8f1d
Commit working version before changing to readable code.
2019-12-31 12:29:05 -05:00
Nick Thompson
f943649e68
First pass at interquartile range.
2019-12-29 15:34:22 -05:00
Nick
9e1a5f273a
One-sample t-test [CI SKIP]
2019-10-05 15:56:02 -04:00
pabristow
0ab00c3f9d
[CI SKIP] changes to get inspect program problem-free, but one test failure in recurrence.cpp
2019-08-23 09:25:22 +01:00
Nick
165cf9e480
Vectorize mean calculation.
2019-04-13 17:22:24 -04:00
Nick Thompson
93ccc669d9
Remove integer tests for median absolute deviation; need to think more on how this should work (which it can) [CI SKIP]
2019-02-02 11:14:06 -07:00
Nick Thompson
79bd607704
MSVC 14.1 does not appreciate uint8_t; no matter-use unsigned for the test instead [CI SKIP]
2019-01-23 09:01:41 -07:00
Nick Thompson
ff366e85a2
Add variance of N-sided die as unit test [CI SKIP]
2019-01-18 10:00:43 -07:00
Nick Thompson
f3af883c6d
Patch up univariate statistics for some integer types. [CI SKIP]
2019-01-12 14:57:16 -07:00
Nick Thompson
fb4f7748cd
Refactor kurtosis calculation to use first_four_moments.
2019-01-11 15:19:48 -07:00
Nick Thompson
df447ae00d
Rename 'absolute_median' to 'median_absolute_deviation' [CI SKIP]
2019-01-07 10:50:06 -07:00
Nick Thompson
4848accb77
Add unit tests demonstrating that the kurtosis of various continuous distributions is calculated correctly. Add excess_kurtosis to make clear the working definition of kurtosis. [CI SKIP]
2018-12-25 23:00:46 -07:00
Nick Thompson
d509957642
Instead of using 'population_stat' in calls, simply call 'stat', and provide 'sample_stat' when an unbiased estimator of stat exists. [CI SKIP]
2018-12-17 14:39:30 -07:00
Nick Thompson
87f4bc9b11
Add skewness and kurtosis [CI SKIP]
2018-12-11 14:01:28 -07:00
Nick Thompson
94ceca1e43
Split descriptive_statistics.hpp into univariate_statistics.hpp and a currently-hypothetical bivariate_statistics.hpp [CI SKIP]
2018-12-10 12:05:05 -07:00