pub struct EllipticEnvelope {
pub contamination: f32,
pub support_fraction: Option<f32>,
/* private fields */
}Expand description
Elliptic Envelope for Gaussian-distributed data
Fields§
§contamination: f32§support_fraction: Option<f32>Implementations§
Source§impl EllipticEnvelope
impl EllipticEnvelope
pub fn new() -> Self
pub fn contamination(self, c: f32) -> Self
pub fn fit(&mut self, x: &Tensor)
pub fn decision_function(&self, x: &Tensor) -> Tensor
pub fn predict(&self, x: &Tensor) -> Tensor
pub fn fit_predict(&mut self, x: &Tensor) -> Tensor
pub fn mahalanobis(&self, x: &Tensor) -> Tensor
Trait Implementations§
Auto Trait Implementations§
impl Freeze for EllipticEnvelope
impl RefUnwindSafe for EllipticEnvelope
impl Send for EllipticEnvelope
impl Sync for EllipticEnvelope
impl Unpin for EllipticEnvelope
impl UnwindSafe for EllipticEnvelope
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