Commit Graph

217 Commits

Author SHA1 Message Date
Andrea Cavalli 0d2c1ccee7 ddof 2019-12-02 13:03:20 +01:00
Andrea Cavalli da03f66ecd fix 2019-12-02 13:02:32 +01:00
Andrea Cavalli 1845ad69b1 add variance0 2019-12-02 13:01:53 +01:00
Andrea Cavalli 538587b81f fix 2019-12-02 13:01:19 +01:00
Andrea Cavalli 5f341bc144 fix 2019-12-02 13:00:47 +01:00
Andrea Cavalli e4ed6fd1b8 fix 2019-12-02 12:59:54 +01:00
Andrea Cavalli c1a0fd14ff renamed 2019-12-02 12:53:18 +01:00
Andrea Cavalli be1bd4c5c6 variance 2019-12-02 12:52:10 +01:00
Vinzent Steinberg 27a14185ee Don't run tests with minimal dependencies
Otherwise the build fails due to issues with rand 0.6.
2019-09-02 14:35:50 +02:00
Vinzent Steinberg 51f07bb799 Travis job for minimal dep versions 2019-09-02 14:35:50 +02:00
Vinzent Steinberg 92b76a8efe Fix build with minimal dependency versions 2019-09-02 14:35:50 +02:00
Vinzent Steinberg 488c0e8eba Bump version 2019-07-31 16:25:16 +02:00
Vinzent Steinberg a76014227c Fix macros in combination with serde1 feature
Before, the feature would be resolved in the crate where the macro was used,
not in the `average` crate as intended.  Now, the macros are defined depending
on the `serde1` feature, fixing this issue.
2019-07-31 16:22:55 +02:00
Vinzent Steinberg 20eeebe727 Bump version 2019-07-09 12:19:33 +02:00
Vinzent Steinberg 5529769e16 Histogram: Add serialization test 2019-07-09 12:19:00 +02:00
Vinzent Steinberg 3853de8481 Fix clippy warnings 2019-07-08 17:32:44 +02:00
Vinzent Steinberg 31a8154e01 Fix serde1 feature and remove unneccessary crate import 2019-07-08 17:32:43 +02:00
Vinzent Steinberg 610f6cae6a Clean up doctests
Also make sure that the macros work when they are imported in isolation.
2019-07-08 17:32:43 +02:00
Vinzent Steinberg c9829a1279 Clean up tests 2019-07-08 17:32:42 +02:00
Vinzent Steinberg 0890aee3fb Clean up benchmarks 2019-07-08 17:32:42 +02:00
Vinzent Steinberg 9401f41558 Use Rust 2018 idioms 2019-07-08 16:04:59 +02:00
Vinzent Steinberg 1bdadfae1b Make code compatible with Rust 2018 2019-07-08 16:04:19 +02:00
Vinzent Steinberg 3326a8bb9c Update dependencies 2019-07-08 16:01:13 +02:00
Vinzent Steinberg 2c2632a564 Add proptest regressions 2019-05-22 17:05:39 +02:00
Vinzent Steinberg 323028bbf4 Bump version 2019-05-22 17:00:40 +02:00
Vinzent Steinberg 9addaa15e9 Increase minimal required Rust version (due to dependencies) 2019-05-22 16:30:47 +02:00
Vinzent Steinberg 80864d796b Try to figure out the minimal required Rust version 2019-05-22 16:23:22 +02:00
Vinzent Steinberg bb7c8d7a27 Increase minimal required Rust version (due to lazy_static) 2019-05-22 16:11:16 +02:00
Vinzent Steinberg 25d894a2f6 Use custom implementation of binomial coefficient
This lets us get rid of the num-integer dependency and makes the
performance of the code generated by `define_moments` close to that of
`Kurtosis`. Before, it was several times slower.

However, the custom implementation is more vulnerable to integer
overflow. In practise, this should not matter, since it does not make
sense to calculate moments of very high order.
2019-05-22 15:51:11 +02:00
Vinzent Steinberg 5b8ace3fb4 Update benchmarks 2019-05-22 14:45:04 +02:00
Vinzent Steinberg 3f82a320f9 Use proptest to test reasonable bounds of mean 2019-04-25 14:53:19 +02:00
Vinzent Steinberg a4098571fd Bump version 2019-04-25 13:53:21 +02:00
Vinzent Steinberg c10616c46e Improve `concatenate!` to support usage outside braces
Fixes #12.
2019-04-25 13:51:33 +02:00
Vinzent Steinberg 4e6082533c Guarantee and test minimal version 2019-01-22 14:36:53 +01:00
Vinzent Steinberg 547149bfd2 Fix serde support
* Use correct Cargo flags.
* Fix tests.
* Fix histogram serialization.
2019-01-22 14:29:29 +01:00
Vinzent Steinberg 15ff7e9ab4 Bump version 2019-01-18 15:56:30 +01:00
Vinzent Steinberg dc2d21bea9 Update dependencies 2019-01-18 15:55:37 +01:00
Vinzent Steinberg 5a6fb296a4 Fix typo 2018-07-27 16:55:02 +02:00
Vinzent Steinberg 8c5121ca08 Suggest correct Serde feature 2018-07-27 16:53:27 +02:00
Vinzent Steinberg f9dee3bf9b Fix clippy warning 2018-07-27 16:52:01 +02:00
Vinzent Steinberg bb994f0f22 Improve docs on calculation of arbitrary moments 2018-07-27 16:50:02 +02:00
Vinzent Steinberg f13be77348 Bump version 2018-07-27 15:15:23 +02:00
Vinzent Steinberg 537a00c053 Fix type inference failure on some targets 2018-07-27 15:14:44 +02:00
Vinzent Steinberg 365c127e35 Bump version 2018-07-24 18:58:55 +02:00
Vinzent Steinberg ee110a774f define_histogram: Fix potential issue 2018-07-24 18:58:17 +02:00
Vinzent Steinberg 5807e211dc Clarify `core` is required for `define_histogram` 2018-07-24 18:52:40 +02:00
Vinzent Steinberg 159af1df99 Bump version 2018-07-24 18:22:00 +02:00
Vinzent Steinberg 56344750a7 Fixes to `Histogram`
1. Now histograms with more than 31 bins are supported (before there
   were issues with missing implementations on arrays.)
2. The items defined by `define_histogram!` are in their own module, to
   avoid issues with Rust's lack of macro hygiene for items.
2018-07-24 18:18:05 +02:00
Vinzent Steinberg b010d0cae6 Fix moments benchmark 2018-07-11 15:52:57 +02:00
Vinzent Steinberg 34eddeec1e Fix Travis serde build 2018-07-11 13:04:26 +02:00