From 980a7648db88db9a6127d2f280c66fa5d358856c Mon Sep 17 00:00:00 2001 From: DDEssing Date: Wed, 26 Aug 2020 13:17:08 +0200 Subject: [PATCH] earth_radius to earth_radius_km line 46, I guess 'earth_radius_km' was meant --- docs/how_to_use_epsilon.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/how_to_use_epsilon.rst b/docs/how_to_use_epsilon.rst index 970b9b97..0f7e2aec 100644 --- a/docs/how_to_use_epsilon.rst +++ b/docs/how_to_use_epsilon.rst @@ -43,7 +43,7 @@ In our example, we choose to merge nested clusters below 5 meters (0.005 kilomet X = np.radians(coordinates) #convert the list of lat/lon coordinates to radians earth_radius_km = 6371 - epsilon = 0.005 / earth_radius #calculate 5 meter epsilon threshold + epsilon = 0.005 / earth_radius_km #calculate 5 meter epsilon threshold clusterer = hdbscan.HDBSCAN(min_cluster_size=4, metric='haversine', cluster_selection_epsilon=epsilon, cluster_selection_method = 'eom')