Skip to content

Initializing histograms from arrays of bin values #421

@alexander-held

Description

@alexander-held

Is it possible to set the bin contents (and variances, for storage=bh.storage.Weight()) of a bh.Histogram() directly without having to .fill() in events?

I assume that aghast could be used to create a histogram from this information and then convert it. Is there a more direct way?

For context: I am considering using bh.Histogram or possibly the hist version as a container for histograms in another library. For this I would like to have the flexibility to create histograms in multiple ways.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions