Struct linfa_clustering::AppxDbscanHyperParamsBuilder [−][src]
pub struct AppxDbscanHyperParamsBuilder<F: Float> { /* fields omitted */ }
Helper struct used to construct a set of hyperparameters for the approximated DBSCAN algorithm
Implementations
impl<F: Float> AppxDbscanHyperParamsBuilder<F>[src]
impl<F: Float> AppxDbscanHyperParamsBuilder<F>[src]pub fn tolerance(self, tolerance: F) -> Self[src]
Distance between points for them to be considered neighbours.
pub fn slack(self, slack: F) -> Self[src]
Approximation factor, allows the distance between two points
for them to be considered neighbours to reach
tolerance * (1 + slack)
pub fn build(&self) -> AppxDbscanHyperParams<F>[src]
Return an instance of AppxDbscanHyperParams after having performed
validation checks on all hyperparameters.
Panics if any of the validation checks fail.
Trait Implementations
impl<F: Float, D: Data<Elem = F>> Transformer<&'_ ArrayBase<D, Dim<[usize; 2]>>, ArrayBase<OwnedRepr<Option<usize>>, Dim<[usize; 1]>>> for AppxDbscanHyperParamsBuilder<F>[src]
impl<F: Float, D: Data<Elem = F>> Transformer<&'_ ArrayBase<D, Dim<[usize; 2]>>, ArrayBase<OwnedRepr<Option<usize>>, Dim<[usize; 1]>>> for AppxDbscanHyperParamsBuilder<F>[src]Auto Trait Implementations
impl<F> RefUnwindSafe for AppxDbscanHyperParamsBuilder<F> where
F: RefUnwindSafe,
impl<F> RefUnwindSafe for AppxDbscanHyperParamsBuilder<F> where
F: RefUnwindSafe, impl<F> Send for AppxDbscanHyperParamsBuilder<F>
impl<F> Send for AppxDbscanHyperParamsBuilder<F>impl<F> Sync for AppxDbscanHyperParamsBuilder<F>
impl<F> Sync for AppxDbscanHyperParamsBuilder<F>impl<F> Unpin for AppxDbscanHyperParamsBuilder<F> where
F: Unpin,
impl<F> Unpin for AppxDbscanHyperParamsBuilder<F> where
F: Unpin, impl<F> UnwindSafe for AppxDbscanHyperParamsBuilder<F> where
F: UnwindSafe,
impl<F> UnwindSafe for AppxDbscanHyperParamsBuilder<F> where
F: UnwindSafe,