33 Commits

Author SHA1 Message Date
Jay Gohil
10c19df918
Add fraction accumulator (for calculating efficiencies, etc) (#361)
* Added fraction accumulator
* Added binomial proportion interval computers: Wald, Wilson Score, Clopper Pearson, Jeffreys
* Width of intervals for all classes can be set via deviation or confidence_level
* Support valarray in histogram::fill
* Add fraction and count to user guide

Co-authored-by: Hans Dembinski <hans.dembinski@gmail.com>
Co-authored-by: Hans Dembinski <HDembinski@users.noreply.github.com>
2022-09-28 11:18:46 +02:00
Hans Dembinski
bf7712f0d7 regular and variable axis are closed intervals if overflow bin is absent (#344) 2021-11-15 09:29:14 +01:00
Hans Dembinski
5253358988
add binary axis 2020-06-06 23:45:12 +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
03d92967f9
use index_type consistently everywhere 2019-12-29 00:02:16 +01:00
Hans Dembinski
9669df7432
reduced usage of ostringstream in exceptions 2019-10-28 20:08:37 +01:00
Hans Dembinski
ebabd550a0
Replace detail::compressed_pair with boost::core::empty_value 2019-10-24 21:47:17 +02:00
Hans Dembinski
a06505d877
Get full coverage with tests only 2019-06-08 16:28:56 +02:00
Hans Dembinski
5f3f9d8fd7
Benchmark improvements and scripts to research history
* allow benchmarks to run in isolation, new scripts to run historic benchmarks
* make sure variant is never trivial in tests and benchmarks
2019-06-02 19:46:57 +02:00
Hans Dembinski
7a55bf0e29 move throw_exception implementation to test and benchmark folders 2019-05-28 23:15:17 +02:00
Hans Dembinski
97f8b7dd91
Fix nothrow-move-assignable failures in travis
* new tests of nothrow move assignment for builtin axis types
* switch to xenial, which apparently comes with a different glibc version that adds a nothrow move assignment operator for std::string
2019-05-28 13:10:53 +02:00
Hans Dembinski
8602102014
support -fno-exceptions and -fno-rrti and test this 2019-05-12 22:08:10 +02:00
Hans Dembinski
478a06ea30
Option tag (#167)
replace option system with simpler and future-safe system
2019-03-06 15:25:11 +01:00
Hans Dembinski
9abbe46e3d
CI & doc update, removed multiprecision::cpp_int, simpler axis implementation, use_default to set default options
* Travis uses b2 and codecov now
* replacing boost::multiprecision with custom implementation to avoid the dependency
* improved axis implementation: `update` is now a normal method
* introduced use_default tag type to set defaults
* whitespace fixes and doc update
2019-02-17 13:37:50 +01:00
Hans Dembinski
c3966a52c2
doc and coverage updates 2019-02-11 20:28:41 +01:00
Hans Dembinski
53b66cafc8 squash a few warnings on the boost matrix 2019-02-09 17:11:42 +01:00
Hans Dembinski
72d9ce635f axis:replaced operator() with index and operator[] with bin 2019-01-27 20:56:15 +01:00
Hans Dembinski
b6f454f493 enable underflow and overflow for growing axis where possible 2019-01-19 23:19:04 +01:00
Hans Dembinski
9d22f3791c implemented ctor with step size for regular axis, closes #88 2019-01-19 13:21:42 +01:00
Hans Dembinski
6c74da60ed regular axis growable; removed axis::base; replaced int with index_type 2019-01-16 00:52:41 +01:00
Hans Dembinski
8e9dd85837 wip: growing axis for axis::integer 2019-01-13 22:14:53 +01:00
Hans Dembinski
0479c512e3 rename option_type to option, new growth option, new utiltity functions test and join 2019-01-13 14:25:34 +01:00
Hans Dembinski
e80ae946e6 full iterator support 2019-01-11 00:06:26 +01:00
Hans Dembinski
12a79e5197 regular axis with unit can now also use transforms 2019-01-11 00:06:26 +01:00
Hans Dembinski
fb7ca0a0ef added deduction guides for axis types; removed circular axis implementation, implemented circular option for regular, integer, and variable axis; simplified transform spec; added axis::allocator alias 2019-01-11 00:06:26 +01:00
Hans Dembinski
00cd2e866e changed axis::option_type to compile-time option, replaced fancy histogram iterator with indexed range adaptor, cleanup of various headers 2019-01-11 00:06:26 +01:00
Hans Dembinski
4533bd9fd4 added reduce algorithm to shrink and rebin, fixed bug in polymorphic_bin in the process, to-do: add more axis support for shrink and rebin 2019-01-11 00:06:26 +01:00
Hans Dembinski
3b429d889c fix 2019-01-11 00:06:26 +01:00
Hans Dembinski
3661b238b6 clean up of accumuators, use consistent naming, make sure that sum accumulator can be used as RealType in weighted_sum 2019-01-11 00:06:26 +01:00
Hans Dembinski
04ca7a3fee wip for adding profile support 2019-01-11 00:06:25 +01:00
Hans Dembinski
d326514ac8 all tests pass for adapted vector and array, map still failing 2019-01-11 00:06:25 +01:00
Hans Dembinski
2164ea85b3 refactoring 2019-01-11 00:06:25 +01:00
Hans Dembinski
1c7d28ca9b factoring out test code 2019-01-11 00:06:25 +01:00