Calculates the counts per bin of a list. More...
Public Member Functions | |
Histogram (const List &bins, const List &l) | |
Construct given bin values and input list. More... | |
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. More... | |
Histogram (const Histogram &)=delete | |
Disallow default bitwise copy construction. More... | |
const labelList & | counts () const |
Return the counts per bin. More... | |
label | nLow () const |
Return the number of elements <= bins[0]. More... | |
label | nHigh () const |
Return the number of elements > bins[bins.size()-1]. More... | |
void | operator= (const Histogram &)=delete |
Disallow default bitwise assignment. More... | |
Calculates the counts per bin of a list.
Definition at line 50 of file Histogram.H.
Construct given bin values and input list.
Definition at line 71 of file Histogram.C.
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.
Definition at line 79 of file Histogram.C.
References Foam::max(), and Foam::min().
|
inline |
Return the counts per bin.
Definition at line 92 of file Histogram.H.
References Histogram< List >::nHigh(), Histogram< List >::nLow(), and Histogram< List >::operator=().
|
inline |
Return the number of elements <= bins[0].
(so inclusive lowest bin value)
Definition at line 99 of file Histogram.H.
Referenced by Histogram< List >::counts().
|
inline |
Return the number of elements > bins[bins.size()-1].
(so exclusive highest bin value)
Definition at line 106 of file Histogram.H.
Referenced by Histogram< List >::counts().
Disallow default bitwise assignment.
Referenced by Histogram< List >::counts().