Hans Dembinski
f9920135c5
fix weighted_mean::operator+= and add missing noexcept to operator*= ( #311 )
2021-03-17 11:53:10 +01:00
Hans Dembinski
18b544c6ad
add detail::square ( #309 )
2021-03-16 19:26:52 +01:00
Hans Dembinski
de33fc74a4
Fix variance calculation in accumulators::mean::operator+= ( #308 )
2021-03-16 13:17:40 +01:00
Hans Dembinski
5bd5bfb978
Bug-fix for one-sided cropping and clarify how cropping works ( #302 )
2020-12-07 15:12:20 +01:00
Hans Dembinski
ebe9010db8
bug-fix: handling of special values in ctor and in value method #301
...
* Fixed: Passing nan to the ctor of axis::variable failed to throw std::invalid_argument
* Fixed: axis::variable{{0, 1, inf}}.value(1) was nan, because interpolation would compute 0 * inf
2020-11-10 22:18:32 +01:00
Hans Dembinski
3f9e9c3dc8
Document undefined behavior of accumulator::mean and accumulator::weighted_mean ( #298 )
2020-11-01 23:38:50 +01:00
Hans Dembinski
9a37827066
test and fix for gcc-5 ( #129 )
2020-11-01 19:34:55 +01:00
Hans Dembinski
0840102bfe
Workaround for gcc bug, fix for static global variable and function in header, fix of c++20 warning
2020-11-01 17:10:11 +01:00
Hans Dembinski
2f91f037b9
Replace travis and fix several warnings ( #128 )
...
* fix iteration warning
* fix c++20 warning of deprecated volatile ops
* fix warning of using naked throw
2020-10-31 20:40:11 +01:00
Hans Dembinski
6e78037c43
fix gcc warning -Wtautological-compare in options.hpp ( #293 )
2020-10-30 23:24:03 +01:00
Hans Dembinski
93348cf672
Add doxygen docs to boolean axis
2020-07-25 14:35:46 +02:00
Henry Schreiner
302c72dc72
fix: Boolean axes missing options() method ( #283 )
2020-07-05 08:45:18 +02:00
Hans Dembinski
5e60e86d3c
rename binary to boolean ( #126 )
2020-06-24 23:50:25 +02:00
Hans Dembinski
4736fe761f
remove mp_valid and simplify metaprogramming
2020-06-10 21:56:12 +02:00
Hans Dembinski
a819ef53bf
remove boost.assert and cleanup boost.config
2020-06-08 00:41:12 +02:00
Hans Dembinski
5253358988
add binary axis
2020-06-06 23:45:12 +02:00
Hans Dembinski
1be4c4b3f2
faster for identical axes ( #121 )
2020-05-27 23:28:24 +02:00
Hans Dembinski
751e597384
Fixes bug in histogram::opertor+=, which ignored flow bin entries
2020-05-24 14:44:48 +02:00
Hans Dembinski
e8b61bf483
Flexible category add ( #118 )
...
- added axis::traits::continuous to match axis::traits::is_continuous
- axes now return mutable metadata even when constant
- histograms with discrete growing axis can be added
- use multi_index in histogram interface
2020-05-20 02:42:53 +02:00
Hans Dembinski
6d87576f1d
fixing copy-pasted typo if ostream file descriptions
2020-04-14 17:08:46 +02:00
Hans Dembinski
45d927ac80
missing doxy for sample_type
2020-04-14 17:08:08 +02:00
Hans Dembinski
830f238534
reverting to standalone docs and some doc fixes
2020-03-23 19:12:51 +01:00
Hans Dembinski
e77fb53578
missing include
2020-03-23 15:44:47 +01:00
Hans Dembinski
9382f57f9a
fix for scaling operator bug and accumulator_traits bug and new tests for these bugs
2020-03-11 00:49:05 +01:00
Hans Dembinski
38d9118c29
move reduce_command into separate header
2020-03-10 18:47:51 +01:00
Hans Dembinski
82a22250aa
new docu section about histogram usage in APIs
2020-03-10 13:34:44 +01:00
Hans Dembinski
48226f606e
revert to functions to generate reduce commands
2020-03-09 22:48:28 +01:00
Hans Dembinski
e751503536
Better documentation on usage of Boost.Accumulators and simplified accumulator_traits
2020-03-09 20:48:50 +01:00
Hans Dembinski
371323a65e
remove the warnings workaround for variant2
2020-03-09 16:28:31 +01:00
Hans Dembinski
0583e6598d
small interface fix and adaptations to current boost develop
2020-01-31 23:58:33 +01:00
Hans Dembinski
3e882bce26
add crop command for reduce
2020-01-31 21:41:32 +01:00
Hans Dembinski
82d9314302
reducible category axis and general reduce upgrade
...
* reducible category axis
* new axis::trait is_ordered and ordered()
* reduce accepts positional commands now
* renamed (old symbols still there, but deprecated)
- static_is_inclusive -> is_inclusive
- static_options -> get_options
- reduce_option -> reduce_command
* reduce commands are now structs derived from reduce_command base instead of functions
* simplified TMP code in axis::traits
* updated and improved docs for reduce
2020-01-06 01:37:52 +01:00
Hans Dembinski
9aef54cf70
Extended custom accumulator section in user guide and added count accumulator
2020-01-03 19:40:41 +01:00
Hans Dembinski
9fb9b5fe31
Reduce template usage in accumulators and add method documentation
2020-01-03 12:57:59 +01:00
Hans Dembinski
e1cd2a911c
add value method to accumulator::sum
2020-01-03 12:15:27 +01:00
Hans Dembinski
270f6a1afb
algorithm::sum gains coverage arg and improved documentation
2020-01-03 11:07:21 +01:00
Hans Dembinski
87e757f9e1
Fixes possible pointer arithmetic past end position in indexed
2020-01-03 01:57:20 +01:00
Hans Dembinski
3dff0438ea
Accumulator fixes
...
* Bug-fix of weighted_sum: variance was not calculated correctly when normal histogram was added to weighted histogram with weighted_sum storage
* Several minor improvements to accumulator interfaces
2020-01-02 19:07:40 +01:00
Hans Dembinski
03d92967f9
use index_type consistently everywhere
2019-12-29 00:02:16 +01:00
Hans Dembinski
1305445ce4
stop compiler optimizations with -ffast-math from break sum accumulator
2019-12-20 20:13:39 +01:00
Hans Dembinski
81cf62d010
fix of reduce when histogram lacks flow bins
...
reducing histograms with axes that lacked flow bins failed before this patch
2019-12-15 18:04:20 +01:00
Hans Dembinski
e415be10cd
fix for fill segfault
...
old code allowed to pass sequences of length 1 with sequence of length N > 1, which is invalid
2019-11-21 12:35:37 +01:00
Hans Dembinski
be058afcaf
fix for axis::get on a variant of pointers
...
* `axis::get<axis_t>(hist.axis(0))` failed, when hist uses an axis tuple
* added missing test for this case
2019-11-21 00:36:59 +01:00
Hans Dembinski
b1988cd75d
make serialize a member function for null_type
2019-11-21 00:24:32 +01:00
Hans Dembinski
e093ecd4b0
Fixes fill from strings and variant of value types and containers of value types
2019-11-21 00:23:10 +01:00
Hans Dembinski
80a6cb90ed
add missing assert message for msvc
2019-11-20 23:24:55 +01:00
Hans Dembinski
d0c1ef5b27
Allow some empty axes
2019-11-18 23:20:34 +01:00
Hans Dembinski
b7fc900e3b
Better error messages when fill arguments do not match accumulator requirements
2019-11-06 00:19:41 +01:00
Hans Dembinski
a0f75b335d
Update concepts
...
* fix documentation of serialization support for all types
* document optional support of weighted fills for custom accumulators
2019-11-04 21:11:19 +01:00
Hans Dembinski
6d7838d8b4
fix for libc++ and c++2a
2019-11-04 20:47:56 +01:00