Commit Graph

108 Commits

Author SHA1 Message Date
Vinzent Steinberg fed9248122 Include license verbatim 2017-11-19 11:07:58 +01:00
Vinzent Steinberg c7ee8a6587 Clean up formatting 2017-11-19 10:57:01 +01:00
Vinzent Steinberg 7f6d1a12c2 Move quantile tests to external file if possible 2017-11-19 10:50:59 +01:00
Vinzent Steinberg 5656156660 Fix a negative underflow when calculating quantiles
Fixes #5.
2017-11-19 10:31:00 +01:00
Vinzent Steinberg 57f9d13434 Merge branch 'percentile-99-9' of https://github.com/niklasf/average into panic 2017-11-19 10:17:59 +01:00
Vinzent Steinberg 6568725139 Merge branch 'master' of https://github.com/vks/average 2017-11-19 10:13:41 +01:00
Niklas Fiekas f7ee0b1127 Panic when using quantile close to 1 2017-11-18 12:22:58 +01:00
Vinzent Steinberg 000c894b04
Merge pull request #4 from singron/fix-32
Fix compile on 32-bit
2017-11-13 09:11:29 +01:00
Eric Culp d8d171e025 Fix compile on 32-bit
Fix #3
2017-11-12 16:42:48 -08:00
Vinzent Steinberg e2e799e02a Merge pull request #2 from Eh2406/master
clarify types for rust/pull/44287
2017-09-14 08:10:09 +02:00
Eh2406 b8d31c80ee clarify types for rust/pull/44287 2017-09-13 23:35:53 -04:00
Vinzent Steinberg dc25fd1687 Add a reference for calculating quantiles 2017-06-27 12:45:04 +02:00
Vinzent Steinberg 0098668d3b Add a reference for calculating moments 2017-06-27 12:40:09 +02:00
Vinzent Steinberg 9daef2c101 Add missing file 2017-06-27 09:58:37 +02:00
Vinzent Steinberg 5d6d67bac9 Move `add` and `merge` to trait
This should make it possible to write more generic code.
2017-06-25 15:39:12 +02:00
Vinzent Steinberg d5b3fc80ab More code deduplication 2017-06-23 17:43:42 +02:00
Vinzent Steinberg 9313307ae9 Reduce code duplication by using a macro 2017-06-23 16:47:11 +02:00
Vinzent Steinberg fabe36f6b2 Bump version 2017-06-21 19:42:07 +02:00
Vinzent Steinberg 2012479430 Document what is implemented by `concatenate` 2017-06-21 19:41:25 +02:00
Vinzent Steinberg fb1b0879bd Add tests for `concatenate` 2017-06-21 19:35:41 +02:00
Vinzent Steinberg 9b055e4c0b Make sure `concatenate` inlines 2017-06-21 19:35:17 +02:00
Vinzent Steinberg fd72100913 Improve documentation 2017-06-21 19:34:51 +02:00
Vinzent Steinberg f698e4dc50 Improve `concatenate` to support several statistics from one estimator 2017-06-21 19:29:25 +02:00
Vinzent Steinberg 2b960310ce Implement `Default` for `Quantile` 2017-06-21 19:23:53 +02:00
Vinzent Steinberg 01157da831 Macro for concatenating iterative estimators 2017-06-21 18:05:54 +02:00
Vinzent Steinberg 0eed9d06db Better keywords
"statistics" was already in the description, so it does not need to be a
keyword.
2017-06-21 12:12:22 +02:00
Vinzent Steinberg b96bb30004 Use badges 2017-06-09 10:55:42 +02:00
Vinzent Steinberg d5fac05f80 Fix typo 2017-06-09 10:42:33 +02:00
Vinzent Steinberg 6f9a830fc4 Bump version 2017-05-31 00:06:53 +02:00
Vinzent Steinberg 7f9a531fcd Upgrade quickersort
This should restore `no_std` support.
2017-05-31 00:04:55 +02:00
Vinzent Steinberg 40f8d2f968 Build conv without default features
This makes it not require std. We still cannot build without std due to
`sort_floats` requiring it.
2017-05-30 15:20:33 +02:00
Vinzent Steinberg 83aa052040 Fix a clippy warning 2017-05-30 11:18:25 +02:00
Vinzent Steinberg 20521ac22c Disable some noisy clippy warnings 2017-05-30 10:54:14 +02:00
Vinzent Steinberg d68a138d86 Implement `Default` for `Min` and `Max` 2017-05-30 10:43:57 +02:00
Vinzent Steinberg 89349508dd Use less keywords 2017-05-29 01:04:34 +02:00
Vinzent Steinberg 1b66305db7 Bump version 2017-05-29 00:59:21 +02:00
Vinzent Steinberg eafe23b568 Add example 2017-05-29 00:58:25 +02:00
Vinzent Steinberg c6f3bb6d99 Use mean instead of average in docs 2017-05-29 00:42:33 +02:00
Vinzent Steinberg 0705c3f61f Fix typo 2017-05-29 00:40:16 +02:00
Vinzent Steinberg 80e92f6176 Update documentation 2017-05-29 00:39:33 +02:00
Vinzent Steinberg bea79374e3 Move random tests to separate file 2017-05-28 23:46:15 +02:00
Vinzent Steinberg b8e980d6ce Implement kurtosis
Also improve skewness tests.
2017-05-28 23:33:16 +02:00
Vinzent Steinberg 4f5ddbd6e9 Implement skewness and add missing inline annotations 2017-05-28 22:37:48 +02:00
Vinzent Steinberg 8c6c55190e Fix benchmarks
They were forgotten when renaming average to mean.
2017-05-28 21:19:12 +02:00
Vinzent Steinberg 978f6ec10e Make `increment` and `add_inner` private
They mess up invariants if not used correctly and don't have to be public
anymore.
2017-05-28 21:15:59 +02:00
Vinzent Steinberg 30622be775 Rename average to mean for consistency 2017-05-28 21:13:47 +02:00
Vinzent Steinberg 712303b58a Split up moments into one file for each
This anticipates adding skewness.
2017-05-28 21:00:04 +02:00
Vinzent Steinberg 19127cede7 Calculate average in terms of delta/n
This will avoid divisions in the inner loop when calculating higher
moments.
2017-05-28 20:30:05 +02:00
Vinzent Steinberg 9bf56690e6 Make sure quantile works for small samples
Before it was returning wrong results for samples with less than 5
elements.

Also mention that average and quantile will be 0 for empty samples.
2017-05-28 14:03:53 +02:00
Vinzent Steinberg 46c7220c9a Don't use `as` 2017-05-28 12:45:58 +02:00