QuantLib_Histogram man page

Histogram — Histogram class.

Synopsis

#include <ql/math/statistics/histogram.hpp>

Public Types

enum Algorithm { None, Sturges, FD, Scott }

Public Member Functions

constructors

Histogram ()

template<class T > Histogram (T data_begin, T data_end, Size breaks)

template<class T > Histogram (T data_begin, T data_end, Algorithm algorithm)

template<class T , class U > Histogram (T data_begin, T data_end, U breaks_begin, U breaks_end)

inspectors

Size bins () const

const std::vector< Real > & breaks () const

Algorithm algorithm () const

bool empty () const

results

Size counts (Size i) const

Real frequency (Size i) const

Detailed Description

Histogram class.

This class computes the histogram of a given data set. The caller can specify the number of bins, the breaks, or the algorithm for determining these quantities in computing the histogram.

Author

Generated automatically by Doxygen for QuantLib from the source code.

Referenced By

md4(n).

algorithm(3), bins(3), breaks(3), counts(3) and Histogram(3) are aliases of QuantLib_Histogram(3).

Fri Sep 23 2016 Version 1.8.1 QuantLib