8000 Merge pull request #94 from Dimi3-admin/patch-1 · lhoupert/from-python-to-numpy@61f4331 · GitHub
[go: up one dir, main page]

Skip to content

Commit 61f4331

Browse files
authored
Merge pull request rougier#94 from Dimi3-admin/patch-1
Fix: First point generation
2 parents abde314 + 2115a8c commit 61f4331

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code/Bridson_sampling.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def add_point(p):
6767
N[(i, j)] = neighborhood(M.shape, (i, j), 2)
6868

6969
points = []
70-
add_point((np.random.uniform(width), np.random.uniform(height)))
70+
add_point((np.random.uniform(0,width), np.random.uniform(0,height)))
7171
while len(points):
7272
i = np.random.randint(len(points))
7373
p = points[i]

0 commit comments

Comments
 (0)
0