Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
DrEO
sho
Commits
28462bf6
Commit
28462bf6
authored
Sep 27, 2021
by
nojhan
Browse files
Merge branch 'master' of gitlab.ensta.fr:Dreo/sho
parents
3409f025
5a96a25f
Changes
1
Hide whitespace changes
Inline
Side-by-side
sho/num.py
View file @
28462bf6
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment