Skip to main content

CorePlotting::HistogramData

CorePlotting::HistogramData

Uniform-bin histogram ready for visualization. More…

#include <HistogramData.hpp>

Public Functions

Name
std::size_t numBins() const
double binLeft(std::size_t i) const
Left edge of bin i.
double binCenter(std::size_t i) const
Center of bin i.
double binRight(std::size_t i) const
Right edge of bin i.
double binEnd() const
Right edge of the last bin.
double maxCount() const
Maximum bin value (0 if empty).

Public Attributes

Name
double bin_start
Left edge of the first bin (x-axis).
double bin_width
Width of each bin (x-axis units).
std::vector< double > counts
Per-bin values (counts, rates, etc.).

Detailed Description

struct CorePlotting::HistogramData;

Uniform-bin histogram ready for visualization.

All fields are in data space (the widget’s coordinate system). The mapper converts this into renderable geometry.

Public Functions Documentation

function numBins

inline std::size_t numBins() const

function binLeft

inline double binLeft(
    std::size_t i
) const

Left edge of bin i.

function binCenter

inline double binCenter(
    std::size_t i
) const

Center of bin i.

function binRight

inline double binRight(
    std::size_t i
) const

Right edge of bin i.

function binEnd

inline double binEnd() const

Right edge of the last bin.

function maxCount

inline double maxCount() const

Maximum bin value (0 if empty).

Public Attributes Documentation

variable bin_start

double bin_start {0.0};

Left edge of the first bin (x-axis).

variable bin_width

double bin_width {1.0};

Width of each bin (x-axis units).

variable counts

std::vector< double > counts;

Per-bin values (counts, rates, etc.).


Updated on 2026-11-13 at 20:25:42 +0000