Commit ba3ca139 authored by Axel Rochel's avatar Axel Rochel
Browse files

fix cover_sum function in num.py by normalizing the range of sensor_range

parent 4f03f9c0
......@@ -23,7 +23,7 @@ def to_sensors(sol):
def cover_sum(sol, domain_width, sensor_range, dim):
"""Compute the coverage quality of the given vector."""
assert(0 < sensor_range <= domain_width * math.sqrt(2))
assert(0 < sensor_range <= math.sqrt(2))
assert(0 < domain_width)
assert(dim > 0)
assert(len(sol) >= dim)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment