Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
proba-mc2020
proba-mc2020
Commits
eabb1311
Commit
eabb1311
authored
Jan 19, 2020
by
Matthieu Boileau
Browse files
correct p comparison
parent
f25f75b9
Changes
1
Hide whitespace changes
Inline
Side-by-side
percolation.py
View file @
eabb1311
...
...
@@ -49,7 +49,7 @@ class PercolationRect:
Order the vertical edges by (i,j,1); i=1..w+1; j=1..h,
same coordinate as the horizontals.
"""
return
np
.
where
(
self
.
rand_array
<
p
,
0
,
1
)
return
np
.
where
(
self
.
rand_array
>
p
,
0
,
1
)
def
compute_clusters
(
self
,
p
:
float
):
"""
...
...
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