Skip to content

Commit

Permalink
upd: remove main in stopping point
Browse files Browse the repository at this point in the history
  • Loading branch information
teo-lohrer-su committed Jun 4, 2024
1 parent 4e79e22 commit 1c3f595
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions fast_mda_traceroute/algorithms/utils/stopping_point.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,18 +91,3 @@ def stopping_point(n_interfaces: int, failure_probability: float) -> int:
else:
lower_bound = n_probes
return upper_bound


if __name__ == "__main__":
# Examples

for total_interfaces in range(1, 20):
print(f"{stopping_point(total_interfaces, 0.05)}")

for n_probes in range(1, 20):
print("---")
for observed_interfaces in range(1, n_probes + 1):
estimate = estimate_total_interfaces(
n_probes, observed_interfaces, likelihood_threshold=0.95
)
print(f"n={n_probes} k={observed_interfaces} -> {estimate}")

0 comments on commit 1c3f595

Please sign in to comment.