Struct rusty_machine::learning::dbscan::DBSCAN [] [src]

pub struct DBSCAN {
    // some fields omitted
}

DBSCAN Model

Implements clustering using the DBSCAN algorithm via the UnSupModel trait.

Methods

impl DBSCAN
[src]

fn new(eps: f64, min_points: usize) -> DBSCAN

Create a new DBSCAN model with a given distance episilon and minimum points per cluster.

fn set_predictive(&mut self, predictive: bool)

Set predictive to true if the model is to be used to classify future points.

If the model is set as predictive then the input data will be cloned during training.

fn clusters(&self) -> Option<&Vector<Option<usize>>>

Return an Option pointing to the model clusters.

Trait Implementations

impl Debug for DBSCAN
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl Default for DBSCAN
[src]

Constructs a non-predictive DBSCAN model with the following parameters:

fn default() -> DBSCAN

Returns the "default value" for a type. Read more

impl UnSupModel<Matrix<f64>, Vector<Option<usize>>> for DBSCAN
[src]

fn train(&mut self, inputs: &Matrix<f64>)

Train the classifier using input data.

fn predict(&self, inputs: &Matrix<f64>) -> Vector<Option<usize>>

Predict output from inputs.