pub struct OPTICS {
pub min_samples: usize,
pub max_eps: f32,
pub metric: OPTICSMetric,
pub cluster_method: ClusterMethod,
pub xi: f32,
/* private fields */
}Expand description
OPTICS - Ordering Points To Identify the Clustering Structure
Fields§
§min_samples: usize§max_eps: f32§metric: OPTICSMetric§cluster_method: ClusterMethod§xi: f32Implementations§
Source§impl OPTICS
impl OPTICS
pub fn new(min_samples: usize) -> Self
pub fn max_eps(self, eps: f32) -> Self
pub fn xi(self, xi: f32) -> Self
pub fn fit(&mut self, x: &Tensor)
pub fn fit_predict(&mut self, x: &Tensor) -> Tensor
pub fn labels(&self) -> Option<&Vec<i32>>
pub fn reachability(&self) -> Option<&Vec<f32>>
Auto Trait Implementations§
impl Freeze for OPTICS
impl RefUnwindSafe for OPTICS
impl Send for OPTICS
impl Sync for OPTICS
impl Unpin for OPTICS
impl UnwindSafe for OPTICS
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more