Vinzent Steinberg
5529769e16
Histogram: Add serialization test
2019-07-09 12:19:00 +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
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
547149bfd2
Fix serde support
...
* Use correct Cargo flags.
* Fix tests.
* Fix histogram serialization.
2019-01-22 14:29:29 +01: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
0de183127e
Implement merge for Histogram
2018-07-06 13:27:26 +02:00
Vinzent Steinberg
7f8663c23e
Update dependencies
2018-07-06 10:31:26 +02:00
Vinzent Steinberg
7e06374843
histogram: Implement variance
...
This is useful for error estimates.
2018-03-07 17:45:38 +01:00
Vinzent Steinberg
0259728bb8
Fix constant width histograms for ranges not starting at 0
2018-03-07 17:37:06 +01:00
Vinzent Steinberg
c04ce8887e
histogram: Implement AddAssign
and MulAssign
...
Also clarify documentation and name of `min`/`max`.
2018-03-07 17:08:19 +01:00
Vinzent Steinberg
682fec27fe
histogram: Implement min, max and reset
2018-03-06 19:22:42 +01:00
Vinzent Steinberg
d1ab9630af
histogram: Implement iteration over bin centers
2018-03-06 18:55:21 +01:00
Vinzent Steinberg
3f22412aa3
Fix clippy warnings
2018-03-06 18:48:08 +01:00
Vinzent Steinberg
86a411143e
histogram: Implement iteration of bin widths and normalized bins
2018-03-06 18:27:31 +01:00
Vinzent Steinberg
c64544baa8
Implement iteration of histograms
2018-03-06 17:16:54 +01:00
Vinzent Steinberg
ba93bb4e65
Refactor histograms to use common trait
2018-03-06 16:26:02 +01:00
Vinzent Steinberg
3a0dcafd21
Implement histograms
...
In order for them to have constant size, a macro is provided to crate
the histogram type. This should be replaced by const generics once Rust
has them.
2018-03-06 15:54:30 +01:00