Accumulating histogram of values. Specified bin resolution automatic generation of bins. More...
Public Member Functions | |
| TypeName ("distribution") | |
| Runtime type information. More... | |
| distribution () | |
| Construct null. More... | |
| distribution (const scalar binWidth) | |
| Construct from binWidth. More... | |
| distribution (const distribution &) | |
| Construct as copy. More... | |
| virtual | ~distribution () |
| Destructor. More... | |
| label | totalEntries () const |
| scalar | approxTotalEntries () const |
| scalar | mean () const |
| scalar | median () |
| void | add (const scalar valueToAdd) |
| Add a value to the appropriate bin of the distribution. More... | |
| void | add (const label valueToAdd) |
| void | insertMissingKeys () |
| List< Pair< scalar > > | normalised () |
| List< Pair< scalar > > | normalisedMinusMean () |
| List< Pair< scalar > > | normalisedShifted (scalar shiftValue) |
| List< Pair< scalar > > | raw () |
| scalar | binWidth () const |
| void | operator= (const distribution &) |
Public Member Functions inherited from Map< label > | |
| Map () | |
| Construct null with default table capacity. More... | |
| Map (const label size) | |
| Construct with given initial table capacity. More... | |
| Map (Istream &is) | |
| Construct from Istream with default table capacity. More... | |
| Map (const this_type &map) | |
| Copy construct. More... | |
| Map (this_type &&map) | |
| Move construct. More... | |
| Map (std::initializer_list< std::pair< label, label >> map) | |
| Construct from an initializer list. More... | |
| void | operator= (const this_type &rhs) |
| Copy assignment. More... | |
| void | operator= (this_type &&rhs) |
| Move assignment. More... | |
| void | operator= (const this_type &rhs) |
| Copy assign. More... | |
| void | operator= (std::initializer_list< std::pair< Key, label >> rhs) |
| Copy assign from an initializer list. More... | |
| void | operator= (this_type &&rhs) |
| Move assign. More... | |
Static Public Member Functions | |
| static void | write (const fileName &file, const List< Pair< scalar >> &pairs) |
| Write to file. More... | |
Friends | |
| Ostream & | operator<< (Ostream &, const distribution &) |
Additional Inherited Members | |
Public Types inherited from Map< label > | |
| typedef Map< label > | this_type |
| The template instance used for this Map. More... | |
| typedef HashTable< label, label, Hash< label > > | parent_type |
| The template instance used for the parent HashTable. More... | |
| using | iterator = typename parent_type::iterator |
| using | const_iterator = typename parent_type::const_iterator |
Accumulating histogram of values. Specified bin resolution automatic generation of bins.
Definition at line 61 of file distribution.H.
| distribution | ( | ) |
Construct null.
Definition at line 58 of file distribution.C.
| distribution | ( | const scalar | binWidth | ) |
Construct from binWidth.
Definition at line 65 of file distribution.C.
| distribution | ( | const distribution & | d | ) |
Construct as copy.
Definition at line 72 of file distribution.C.
|
virtual |
Destructor.
Definition at line 81 of file distribution.C.
| TypeName | ( | "distribution" | ) |
Runtime type information.
| Foam::label totalEntries | ( | ) | const |
Definition at line 87 of file distribution.C.
References Foam::endl(), forAllConstIters(), and WarningInFunction.
| Foam::scalar approxTotalEntries | ( | ) | const |
Definition at line 115 of file distribution.C.
References forAllConstIters().
| Foam::scalar mean | ( | ) | const |
Definition at line 128 of file distribution.C.
| Foam::scalar median | ( | ) |
Definition at line 151 of file distribution.C.
References forAll, and Foam::normalised().
| void add | ( | const scalar | valueToAdd | ) |
Add a value to the appropriate bin of the distribution.
Definition at line 215 of file distribution.C.
References Foam::abort(), stdFoam::begin(), stdFoam::end(), Foam::FatalError, FatalErrorInFunction, Foam::ListOps::find(), insert(), n, and Foam::neg().
| void add | ( | const label | valueToAdd | ) |
Definition at line 245 of file distribution.C.
References Foam::add().
| void insertMissingKeys | ( | ) |
| Foam::List< Foam::Pair< Foam::scalar > > normalised | ( | ) |
Definition at line 266 of file distribution.C.
References Foam::expressions::patchExpr::debug, Foam::endl(), forAll, Foam::Info, and k.
| Foam::List< Foam::Pair< Foam::scalar > > normalisedMinusMean | ( | ) |
Definition at line 293 of file distribution.C.
| Foam::List< Foam::Pair< Foam::scalar > > normalisedShifted | ( | scalar | shiftValue | ) |
Definition at line 300 of file distribution.C.
References Foam::expressions::patchExpr::debug, Foam::endl(), forAll, Foam::Info, Foam::nl, Foam::normalised(), and Foam::sign().
| Foam::List< Foam::Pair< Foam::scalar > > raw | ( | ) |
Definition at line 411 of file distribution.C.
|
inline |
Definition at line 30 of file distributionI.H.
Referenced by distribution::operator=().
| void operator= | ( | const distribution & | rhs | ) |
Definition at line 433 of file distribution.C.
References distribution::binWidth(), and Map< T >::operator=().
|
friend |