Public Member Functions | |
| def | counts |
| def | densities |
| def | segmentlistdict |
| def | __iand__ |
| def | intersection |
| def | union |
| def | density_at |
| def | random_uniform |
| def | from_xml |
| def | to_xml |
Example:
>>> x = triggerrates({
... "H1": ratebinlist([
... ratebin((0, 10), count = 5),
... ratebin((20, 30), count = 5)
... ]),
... "V1": ratebinlist([
... ratebin((0, 15), count = 7),
... ratebin((25, 35), count = 7)
... ])
... })
...
>>> x
{'H1': [5@[0,10), 5@[20,30)], 'V1': [7@[0,15), 7@[25,35)]}
>>> y = x.copy()
>>> y
{'H1': [5@[0,10), 5@[20,30)], 'V1': [7@[0,15), 7@[25,35)]}
>>> y == x
True
>>> y is x
False
>>> y = triggerrates.from_xml(x.to_xml("test"), "test")
>>> y
{'H1': [5@[0.0,10.0), 5@[20.0,30.0)], 'V1': [7@[0.0,15.0), 7@[25.0,35.0)]}
>>> y == x
True
>>> y is x
False
Definition at line 515 of file trigger_rate.py.
1.8.5