Public Member Functions | List of all members
Histogram< List > Class Template Reference

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

Public Member Functions

 Histogram (const List &bins, const List &l)
 
 Histogram (const typename List::const_reference min, const typename List::const_reference max, const label nBins, const List &l)
 
const labelListcounts () const
 
label nLow () const
 
label nHigh () const
 

Detailed Description

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

Calculates the counts per bin of a list.

Source files

Definition at line 48 of file Histogram.H.

Constructor & Destructor Documentation

◆ Histogram() [1/2]

Histogram ( const List bins,
const List l 
)

Definition at line 66 of file Histogram.C.

References Foam::BitOps::count().

Here is the call graph for this function:

◆ Histogram() [2/2]

Histogram ( const typename List::const_reference  min,
const typename List::const_reference  max,
const label  nBins,
const List l 
)

Definition at line 74 of file Histogram.C.

References Foam::BitOps::count(), Foam::max(), and Foam::min().

Here is the call graph for this function:

Member Function Documentation

◆ counts()

const labelList& counts ( ) const
inline

Definition at line 93 of file Histogram.H.

◆ nLow()

label nLow ( ) const
inline

Definition at line 100 of file Histogram.H.

◆ nHigh()

label nHigh ( ) const
inline

Definition at line 107 of file Histogram.H.


The documentation for this class was generated from the following files: