Skip to content

Commit

Permalink
fix(docs): update tolerance description in DbscanValidParams (#358)
Browse files Browse the repository at this point in the history
Co-authored-by: Rémi Lafage <[email protected]>
  • Loading branch information
grevgeny and relf authored Jan 14, 2025
1 parent 606f59c commit f1f1938
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion algorithms/linfa-clustering/src/dbscan/hyperparams.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ impl<F: Float, D: Distance<F>, N: NearestNeighbour> ParamGuard for DbscanParams<
impl<F: Float, D: Distance<F>, N: NearestNeighbour> TransformGuard for DbscanParams<F, D, N> {}

impl<F: Float, D: Distance<F>, N: NearestNeighbour> DbscanValidParams<F, D, N> {
/// Nearest neighbour algorithm used for range queries
/// Maximum distance between two points to be considered neighbors
pub fn tolerance(&self) -> F {
self.tolerance
}
Expand Down

0 comments on commit f1f1938

Please sign in to comment.