Skip to content

Commit

Permalink
Fix euclidean distance formula in tutorial
Browse files Browse the repository at this point in the history
closes #207
  • Loading branch information
tmontaigu committed Jul 22, 2022
1 parent 9f7bd12 commit 1702154
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/complete_tutorial.rst
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ only the points from a file which are within a certain distance of the first poi
# Calculate the euclidean distance from all points to the first point
distances = np.sum(np.sqrt((coords - first_point) ** 2), axis=1)
distances = np.sqrt(np.sum((coords - first_point) ** 2, axis=1))
# Create an array of indicators for whether or not a point is less than
# 500000 units away from the first point
Expand Down

0 comments on commit 1702154

Please sign in to comment.