Skip to content

Commit

Permalink
allow for continous data
Browse files Browse the repository at this point in the history
  • Loading branch information
aronsho committed Jun 21, 2024
1 parent f8f000e commit ca459c5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion seismostats/analysis/estimate_mc.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ def empirical_cdf(
y = np.arange(1, len(sample) + 1) / len(sample)

x, y_count = np.unique(x, return_counts=True)
y_count -= 1
if delta_m > 0:
y_count -= 1
y = y[np.cumsum(y_count) - 1]
return x, y

Expand Down

0 comments on commit ca459c5

Please sign in to comment.