Skip to content

Commit 988f882

Browse files
pinakinathcjnothman
authored andcommitted
DOC fix display of Haversine equation (scikit-learn#10403)
1 parent 4dafa52 commit 988f882

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

sklearn/neighbors/dist_metrics.pyx

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,11 @@ cdef class DistanceMetric:
141141
distance metric requires data in the form of [latitude, longitude] and both
142142
inputs and outputs are in units of radians.
143143
144-
============ ================== ========================================
144+
============ ================== ===============================================================
145145
identifier class name distance function
146-
------------ ------------------ ----------------------------------------
147-
"haversine" HaversineDistance 2 arcsin(sqrt(sin^2(0.5*dx)
148-
+ cos(x1)cos(x2)sin^2(0.5*dy)))
149-
============ ================== ========================================
146+
------------ ------------------ ---------------------------------------------------------------
147+
"haversine" HaversineDistance ``2 arcsin(sqrt(sin^2(0.5*dx) + cos(x1)cos(x2)sin^2(0.5*dy)))``
148+
============ ================== ===============================================================
150149
151150
152151
**Metrics intended for integer-valued vector spaces:** Though intended

0 commit comments

Comments
 (0)