klee
|
#include <DiscretePDF.h>
Public Member Functions | |
DiscretePDF () | |
~DiscretePDF () | |
bool | empty () const |
void | insert (T item, weight_type weight) |
void | update (T item, weight_type newWeight) |
void | remove (T item) |
bool | inTree (T item) |
weight_type | getWeight (T item) |
T | choose (double p) |
Private Types | |
typedef double | weight_type |
Private Member Functions | |
Node ** | lookup (T item, Node **parent_out) |
void | split (Node *node) |
void | rotate (Node *node) |
void | lengthen (Node *node) |
void | propagateSumsUp (Node *n) |
Private Attributes | |
Node * | m_root |
Definition at line 17 of file DiscretePDF.h.
|
private |
Definition at line 21 of file DiscretePDF.h.
klee::DiscretePDF< T, Comparator >::DiscretePDF | ( | ) |
klee::DiscretePDF< T, Comparator >::~DiscretePDF | ( | ) |
T klee::DiscretePDF< T, Comparator >::choose | ( | double | p | ) |
bool klee::DiscretePDF< T, Comparator >::empty | ( | ) | const |
weight_type klee::DiscretePDF< T, Comparator >::getWeight | ( | T | item | ) |
void klee::DiscretePDF< T, Comparator >::insert | ( | T | item, |
weight_type | weight | ||
) |
bool klee::DiscretePDF< T, Comparator >::inTree | ( | T | item | ) |
|
private |
|
private |
|
private |
void klee::DiscretePDF< T, Comparator >::remove | ( | T | item | ) |
|
private |
|
private |
void klee::DiscretePDF< T, Comparator >::update | ( | T | item, |
weight_type | newWeight | ||
) |
|
private |
Definition at line 41 of file DiscretePDF.h.