14 Commits

Author SHA1 Message Date
Henry Schreiner 05c6910c49 feat: support passing a coverage parameter to project (#422)
* feat: support passing a coverage parameter to project

This would be useful for boost-histogram, as we could support `flow=False` there directly with this. This uses the existing coverage tag, allowing it to be passed in.

Assisted-by: Copilot:Kimi-K2.6
Signed-off-by: Henry Schreiner <henryfs@princeton.edu>

* fix: reduce diff with develop a bit

Signed-off-by: Henry Schreiner <henryfs@princeton.edu>

---------

Signed-off-by: Henry Schreiner <henryfs@princeton.edu>
2026-07-23 08:58:45 +02:00
Ed Catmur b11364eb99 Split out dynamic-only tests (#388)
Compiling tests under Visual Studio 2019 14.29.30133 (19.29.30145.0) fails with a not very helpful error:
```
libs\histogram\test\algorithm_project_test.cpp(186,1): fatal error C1903: unable to recover from previous error(s); stopping compilation
```
This can be fixed by moving the dynamic-only tests into a separate function, so that they are only compiled and run once.

---------

Co-authored-by: Hans Dembinski <hans.dembinski@gmail.com>
2024-04-24 16:08:42 +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 af04e75edc Fix project bug (#207)
fix for a seg fault, when there are too many passed indices
2019-08-25 19:01:09 +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 8602102014 support -fno-exceptions and -fno-rrti and test this 2019-05-12 22:08:10 +02:00
Hans Dembinski 5c75437db5 project algorithm generalized
project now also works with static histogram and iterable arguments
2019-04-26 17:15:13 +02: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 188bf8ecbe Introduce grid type and derive histogram from grid 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 4bc30a74f0 added sum algorithm 2019-01-11 00:06:25 +01:00
Hans Dembinski 04acab427d lifted condition that indices must be rising 2019-01-11 00:06:25 +01:00
Hans Dembinski 3020e72b53 moved reduce_to to project, closes issue 77 2019-01-11 00:06:25 +01:00