csep.utils.basic_types.AdaptiveHistogram

class csep.utils.basic_types.AdaptiveHistogram(dh=0.1, anchor=0.0)[source]

Allows us to work with data that need to be discretized and aggregated even though the the global min/max values are not known before hand. Data are discretized according to the dh and anchor positions and their extreme values. If necessary the range of the bin_edges are expanded to accommodate new data

Using this function incurs some addition overhead, instead of simply just binning and combining.

__init__(dh=0.1, anchor=0.0)[source]

Methods

__init__([dh, anchor])

add(data)

Attributes

rec_dh