Home | Trees | Indices | Help |
|
---|
|
object --+ | SlidingMaxHeap
A max heap that retains the order in which samples were added to it. The history capacity grows dynamically by expanding to the smallest power of two required to hold the contents.
This is essentially an ordinary max heap, storing values and their sample offsets from the originating stream, coupled with a dynamically sized ring buffer storing the heap ranks of each sample.
This procedure should take about O(1) time per input sample on average.
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
Inherited from |
|
x.__init__(...) initializes x; see help(type(x)) for signature
|
Return the maximum element in the history (the 'root' of the binary tree that is the heap).
|
|
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Tue Dec 12 01:21:42 2017 | http://epydoc.sourceforge.net |