Histogram calculation


Calculate the histogram of a given signal.


This node takes a table and calculates a histogram from one of its columns.

The output consists of bin edges and bin values and can for instance be used in a histogram plot in the node Figure.

Masked values in the data column are ignored. Masked values in the weights column are treated as 1.


Input ports



Input data

Output ports



Histogram data

Auto range (auto_range)

When checked, use data range as histogram range.

Bins: (bins)

Number of bins.

Data column: (data_column)

Column to create histogram for.

Density (normed)

When checked, the result is the value of the probability density function at each bin, normalized such that the integral of the histogram is 1.

Weights column: (weights_column)

If you choose a weights column, each value in the data column only contributes its associated weight towards the bin count, instead of 1.

X max: (x_max)

Maximum x value.

X min: (x_min)

Minimum x value.

class node_histogram_calculation.HistogramCalculation[source]

Example flows