[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

20. Histograms

This chapter describes functions for creating histograms. Histograms provide a convenient way of summarizing the distribution of a set of data. A histogram consists of a set of bins which count the number of events falling into a given range of a continuous variable x. In GSL the bins of a histogram contain floating-point numbers, so they can be used to record both integer and non-integer distributions. The bins can use arbitrary sets of ranges (uniformly spaced bins are the default). Both one and two-dimensional histograms are supported.

Once a histogram has been created it can also be converted into a probability distribution function. The library provides efficient routines for selecting random samples from probability distributions. This can be useful for generating simulations based real data.

The functions are declared in the header files `gsl_histogram.h' and `gsl_histogram2d.h'.

20.1 The histogram struct  
20.2 Histogram allocation  
20.3 Copying Histograms  
20.4 Updating and accessing histogram elements  
20.5 Searching histogram ranges  
20.6 Histogram Statistics  
20.7 Histogram Operations  
20.8 Reading and writing histograms  
20.9 Resampling from histograms  
20.10 The histogram probability distribution struct  
20.11 Example programs for histograms  
20.12 Two dimensional histograms  
20.13 The 2D histogram struct  
20.14 2D Histogram allocation  
20.15 Copying 2D Histograms  
20.16 Updating and accessing 2D histogram elements  
20.17 Searching 2D histogram ranges  
20.18 2D Histogram Statistics  
20.19 2D Histogram Operations  
20.20 Reading and writing 2D histograms  
20.21 Resampling from 2D histograms  
20.22 Example programs for 2D histograms  


[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

This document was generated by Michael Stenner on February, 14 2002 using texi2html