Struct isolation_forest::isolation_forest::Forest[][src]

pub struct Forest { /* fields omitted */ }

Isolation Forest implementation.

Implementations

impl Forest[src]

pub fn new(num_trees_to_create: u32, sub_sampling_size: u32) -> Forest[src]

pub fn add_sample(&mut self, sample: Sample)[src]

pub fn create(&mut self)[src]

Creates a forest containing the number of trees specified to the constructor.

pub fn score(&self, sample: &Sample) -> f64[src]

Scores the sample against the entire forest of trees. Result is the average path length.

pub fn normalized_score(&self, sample: &Sample) -> f64[src]

Scores the sample against the entire forest of trees. Result is normalized so that values close to 1 indicate anomalies and values close to zero indicate normal values.“”“

pub fn dump(&self) -> String[src]

pub fn load(&self, json_str: &String)[src]

Trait Implementations

impl Serialize for Forest[src]

Auto Trait Implementations

impl !RefUnwindSafe for Forest

impl !Send for Forest

impl !Sync for Forest

impl Unpin for Forest

impl !UnwindSafe for Forest

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,