histogram_pdf


histogram_pdf, an Octave code which creates a histogram plot of a set of data, normalized to estimate the probability density function (PDF).

The MATLAB function histogram() includes an option to estimate the PDF of a set of data using a histogram. This requires normalizing the data. The Octave function hist() claims to have a similar option, but there is no useful documentation for the normalization parameter, and various experiments have failed to determine the proper usage.

This function works out a normalization and then calls the Octave bar() function to get a plot that is roughly equivalent to the MATLAB plot.

Licensing:

The computer code and data files described and made available on this web page are distributed under the MIT license

Languages:

histogram_pdf is available in an Octave version.

Related Data and Programs:

histogram_pdf_test

Source Code:


Last revised on 14 December 2022.