Go to the documentation of this file.
38 <<
"Should have at least two values in bins. Now:" << bins
42 counts_.setSize(bins.
size()-1);
56 else if (index == bins.
size()-1)
80 const typename List::const_reference
min,
81 const typename List::const_reference
max,
88 typename List::value_type span = (
max-
min) / nBins;
92 for (
label i = 1; i < nBins; i++)
94 bins[i] = bins[i-1] + span;
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
label findLower(const ListType &, typename ListType::const_reference, const label start, const BinaryOp &bop)
Find last element < given value in sorted list and return index,.
Histogram(const Histogram &)
Disallow default bitwise copy construct.
errorManipArg< error, int > exit(error &err, const int errNo=1)
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
Various functions to operate on Lists.
void size(const label)
Override size to be inconsistent with allocated storage.
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
void count(const List &bins, const List &l)