Skip to content

Commit

Permalink
DOC Clarify wording in haversine (scikit-learn#17280)
Browse files Browse the repository at this point in the history
  • Loading branch information
bharatr21 authored May 19, 2020
1 parent 2d12bb5 commit 82011bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sklearn/metrics/pairwise.py
Original file line number Diff line number Diff line change
Expand Up @@ -676,9 +676,9 @@ def haversine_distances(X, Y=None):
"""Compute the Haversine distance between samples in X and Y
The Haversine (or great circle) distance is the angular distance between
two points on the surface of a sphere. The first distance of each point is
assumed to be the latitude, the second is the longitude, given in radians.
The dimension of the data must be 2.
two points on the surface of a sphere. The first coordinate of each point
is assumed to be the latitude, the second is the longitude, given
in radians. The dimension of the data must be 2.
.. math::
D(x, y) = 2\\arcsin[\\sqrt{\\sin^2((x1 - y1) / 2)
Expand Down

0 comments on commit 82011bb

Please sign in to comment.