OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

Histogram< List > Class Template Reference

Calculates the counts per bin of a list. More...

Collaboration diagram for Histogram< List >:

List of all members.


Public Member Functions

 Histogram (const List &bins, const List &l)
 Construct given bin values and input list.
 Histogram (const typename List::const_reference min, const typename List::const_reference max, const label nBins, const List &l)
 Construct given min, max, number of bins and input list.
const labelList & counts () const
 Return the counts per bin.
label nLow () const
 Return the number of elements <= bins[0].
label nHigh () const
 Return the number of elements > bins[bins.size()-1].

Detailed Description

template<class List>
class Foam::Histogram< List >

Calculates the counts per bin of a list.

Source files

Definition at line 46 of file Histogram.H.


Constructor & Destructor Documentation

Histogram ( const List &  bins,
const List &  l 
) [inline]

Construct given bin values and input list.

Definition at line 63 of file Histogram.C.

Histogram ( const typename List::const_reference  min,
const typename List::const_reference  max,
const label  nBins,
const List &  l 
) [inline]

Construct given min, max, number of bins and input list.

Definition at line 71 of file Histogram.C.


Member Function Documentation

const labelList& counts (  )  const [inline]

Return the counts per bin.

Definition at line 91 of file Histogram.H.

label nLow (  )  const [inline]

Return the number of elements <= bins[0].

(so inclusive lowest bin value)

Definition at line 100 of file Histogram.H.

label nHigh (  )  const [inline]

Return the number of elements > bins[bins.size()-1].

(so exclusive highest bin value)

Definition at line 109 of file Histogram.H.


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd