Closed manuguth closed 2 years ago
You are thinking of giving each entry a weight, right?
So we could add an optional weights
argument which needs to be of the same shape as the values
to puma.Histogram
such that one can do
histogram = puma.Histogram(values=[1, 2, 1], weights=[1, 1, 2])
This way we can also preserve our analogy to np.histogram()
, since we can just hand it to that function.
You are thinking of giving each entry a weight, right?
So we could add an optional
weights
argument which needs to be of the same shape as thevalues
topuma.Histogram
such that one can dohistogram = puma.Histogram(values=[1, 2, 1], weights=[1, 1, 2])
This way we can also preserve our analogy to
np.histogram()
, since we can just hand it to that function.
exactly that's what I had in mind, the only thing we need to be careful are the uncertainty calculations
Currently only jets/events without any weight can be plotted while it is important to support also weights for the histograms