Skip to content

Commit

Permalink
chore: update cluster-dbscan docs (#2624)
Browse files Browse the repository at this point in the history
Co-authored-by: Matt Fedderly <[email protected]>
  • Loading branch information
mwenko and mfedderly authored Aug 9, 2024
1 parent 36cdb9f commit ad8012c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/turf-clusters-dbscan/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Takes a set of [points][1] and partition them into clusters according to [https:
### Parameters

* `points` **[FeatureCollection][3]<[Point][1]>** to be clustered
* `maxDistance` **[number][4]** Maximum Distance between any point of the cluster to generate the clusters (kilometers only)
* `maxDistance` **[number][4]** Maximum Distance between any point of the cluster to generate the clusters (kilometers by default, see options)
* `options` **[Object][5]** Optional parameters (optional, default `{}`)

* `options.units` **[string][6]** in which `maxDistance` is expressed, can be degrees, radians, miles, or kilometers (optional, default `"kilometers"`)
Expand Down
2 changes: 1 addition & 1 deletion packages/turf-clusters-dbscan/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ type IndexedPoint = {
*
* @name clustersDbscan
* @param {FeatureCollection<Point>} points to be clustered
* @param {number} maxDistance Maximum Distance between any point of the cluster to generate the clusters (kilometers only)
* @param {number} maxDistance Maximum Distance between any point of the cluster to generate the clusters (kilometers by default, see options)
* @param {Object} [options={}] Optional parameters
* @param {string} [options.units="kilometers"] in which `maxDistance` is expressed, can be degrees, radians, miles, or kilometers
* @param {boolean} [options.mutate=false] Allows GeoJSON input to be mutated
Expand Down

0 comments on commit ad8012c

Please sign in to comment.