votca 2024.2-dev
|
#include <huffmantree.h>
Classes | |
struct | huffmanNode |
Public Member Functions | |
void | makeTree () |
T * | findHoppingDestination (double p) const |
void | setEvents (std::vector< T > *v) |
Private Member Functions | |
void | addProbabilityFromRightSubtreeToLeftSubtree (huffmanNode< T > *n, double add) |
void | moveProbabilitiesFromRightSubtreesOneLevelUp (huffmanNode< T > *n) |
Private Attributes | |
std::vector< huffmanNode< T > > | htree |
bool | treeIsMade = false |
double | sum_of_values = 0.0 |
std::vector< T > * | events = nullptr |
Definition at line 30 of file huffmantree.h.
|
inlineprivate |
Definition at line 143 of file huffmantree.h.
|
inline |
Definition at line 111 of file huffmantree.h.
|
inline |
Definition at line 33 of file huffmantree.h.
|
inlineprivate |
Definition at line 189 of file huffmantree.h.
|
inline |
Definition at line 128 of file huffmantree.h.
|
private |
Definition at line 229 of file huffmantree.h.
|
private |
Definition at line 226 of file huffmantree.h.
|
private |
Definition at line 228 of file huffmantree.h.
|
private |
Definition at line 227 of file huffmantree.h.