![]() |
Version: 1.0 |
Calculates the statistics of a binary drag with one or multiple roots. More...
#include <drag_statistics.h>
Public Member Functions | |
BinaryDragStatistics (const BinaryDrag< conact > &bd) | |
The constructor creates the object and directly calculates the statistics. More... | |
auto | Nodes () const |
Returns the number of unique nodes inside the DRAG. More... | |
auto | Leaves () const |
Returns the number of unique leaves inside the DRAG. More... | |
void | PrintLeaves (std::ostream &os=std::cout) |
Reverse into the specified output stream the unique leaves of a BinaryDrag. More... | |
Calculates the statistics of a binary drag with one or multiple roots.
The statistics are basically the number of unique nodes an unique leaves inside the binary drag. Nodes() and Leaves() member functions allows to access the calculated statistics.
Definition at line 22 of file drag_statistics.h.
|
inline |
The constructor creates the object and directly calculates the statistics.
[in] | bd | BinaryDrag on which calculate the statistics. |
Definition at line 43 of file drag_statistics.h.
|
inline |
Returns the number of unique leaves inside the DRAG.
Definition at line 59 of file drag_statistics.h.
|
inline |
Returns the number of unique nodes inside the DRAG.
Definition at line 53 of file drag_statistics.h.
|
inline |
Reverse into the specified output stream the unique leaves of a BinaryDrag.
[in] | os | Output stream where to write the leaves. Default value is std::cout. |
Definition at line 67 of file drag_statistics.h.