Questions tagged [boost-histogram]
5 questions
1
vote
1 answer
Using `dask` to fill `boost_histograms` stored in class in parallel
I have an dask -boost_histogram question. I have a code structure as follows:
I have a class defined in some script:
class MyHist:
def __init__(....):
self.bh = None
def make_hist(...):
axis = bh.axis.Regular(....)
…

Mohamed Ayman Aly
- 81
- 4
1
vote
0 answers
Writing a boost-histogram to a root file created in uproot
I am currently trying to read in a ROOT tree with uproot, book and fill histograms with boost-histogram and write these back out to a new ROOT file.
This seems to work very well for the bin contents, but I can't seem to get the correct bin errors…

Wprime
- 11
- 1
1
vote
1 answer
Converting existing numpy histograms into boost-histograms
I have a lot of numpy (1d) histograms. Each of them was created like this:
bin_height, bin_edges = np.histogram(data)
What is the best way to turn them into boost-histograms?

muzzle
- 315
- 3
- 9
0
votes
0 answers
Is it possible to inherit from boost::histogram and set axes at runtime?
I am trying to replace a proprietary histogram implementation with boost::histogram but I am stuck. Is it possible to inherit from boost::histogram and set axes at runtime?

Elias
- 452
- 5
- 11
0
votes
1 answer
Empirical probability with boost histogram
I have a boost::histogram with 100 bins over the range [-3.5,3.5]. I fill it with a data vector qp. Since I work with periodic BC all the values of q in qp are in [-3.5,3.5].
auto h =…

Suslik
- 929
- 8
- 28