NVBIO
|
This module implements a class to hold a Sum Tree, an object similar to a Haar Wavelet tree, with the difference that each node encodes the plain sum of the children's coefficients. This data-structure allows O(log(N)) modifications to the values associated with the leaves of the tree.
An example usage of this class is to sample CDFs that are continuously updated over time.
This data structure is storage-free and relies on the user to provide the combined storage for the leaves and the internal nodes using a template iterator. It can be used both in host and device code.
See: