get_next_change_point¶
-
Python_modules.mmcomplexity.
get_next_change_point
(p)¶ Sample from geometric distribution to tell us when the next change point will occur
See doc if unclear
- Args:
p: Bernoulli parameter between 0 and 1
- Returns:
int: if p>0 time step in the future for occurrence of first success (starts counting at 1) numpy.inf: if p==0