Skip to content

Commit d4824da

Browse files
authored
Update stats.py
1 parent f98ec14 commit d4824da

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spatial_maps/stats.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def prob_dist(x, y, bins):
157157
is the y axis, the second dimension is the x axis.
158158
'''
159159

160-
H, _, _ = np.histogram2d(x, y, bins=bins, normed=False)
160+
H, _, _ = np.histogram2d(x, y, bins=bins, density=False)
161161
return (H / len(x))
162162

163163

@@ -177,7 +177,7 @@ def prob_dist_1d(x, bins):
177177
is the y axis, the second dimension is the x axis.
178178
'''
179179

180-
H, _ = np.histogram(x, bins=bins, normed=False)
180+
H, _ = np.histogram(x, bins=bins, density=False)
181181
return (H / len(x)).T
182182

183183

0 commit comments

Comments
 (0)