Trait Iris

Source
pub trait Iris {
    // Required methods
    fn sepal_length(&self) -> f32;
    fn sepal_width(&self) -> f32;
    fn petal_length(&self) -> f32;
    fn petal_width(&self) -> f32;

    // Provided method
    fn dist_sq(&self, other: &dyn Iris) -> f32 { ... }
}
Expand description

Iris functionalities that are independent of classification or lack of it.

Required Methods§

Source

fn sepal_length(&self) -> f32

Source

fn sepal_width(&self) -> f32

Source

fn petal_length(&self) -> f32

Source

fn petal_width(&self) -> f32

Provided Methods§

Source

fn dist_sq(&self, other: &dyn Iris) -> f32

Implementors§

Source§

impl Iris for UnclassifiedIris

Source§

impl<IP> Iris for IP
where IP: IrisParams,