Ruggero Turra
90867e24a4
Add collector accumulator ( #390 )
...
Co-authored-by: Hans Dembinski <hans.dembinski@gmail.com>
2024-04-25 09:05:40 +02:00
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
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
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
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
a51811c25a
more testing
2019-01-16 20:45:34 +01:00
Hans Dembinski
2a7f9cdf61
support for growing variable axis
2019-01-16 09:16:56 +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
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
168e41dc83
change the iteration order from 0...N-1 overflow underflow to underflow 0 ... N -1 overflow, move axis allocators at the end of template argument
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
ab8201eca1
fixes for complaints by cppcheck
2019-01-11 00:06:26 +01:00
Hans Dembinski
db8fe44e9e
added support for variable axis
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
d326514ac8
all tests pass for adapted vector and array, map still failing
2019-01-11 00:06:25 +01:00
Hans Dembinski
450f80cb8a
generialization of axis::variant
2019-01-11 00:06:25 +01:00