Struct fluent_data::model::Model
source · [−]pub struct Model<Point: PartialEq> { /* private fields */ }Expand description
A mixed gaussian model.
Implementations
sourceimpl<Point: PartialEq + 'static> Model<Point>
impl<Point: PartialEq + 'static> Model<Point>
sourcepub fn new<Dist>(space_dist: Dist) -> Selfwhere
Dist: Fn(&Point, &Point) -> f64 + 'static,
pub fn new<Dist>(space_dist: Dist) -> Selfwhere
Dist: Fn(&Point, &Point) -> f64 + 'static,
Builds a new model.
sourcepub fn get_neighborhood(&self, point: &Point) -> Vec<GaussianNode<Point>>
pub fn get_neighborhood(&self, point: &Point) -> Vec<GaussianNode<Point>>
Get the components which the given points most probably belongs to.
sourcepub fn iter_components(
&self
) -> impl Iterator<Item = impl Deref<Target = GaussianData<Point>> + '_>
pub fn iter_components(
&self
) -> impl Iterator<Item = impl Deref<Target = GaussianData<Point>> + '_>
Gets an iterator over the model components.
Auto Trait Implementations
impl<Point> !RefUnwindSafe for Model<Point>
impl<Point> !Send for Model<Point>
impl<Point> !Sync for Model<Point>
impl<Point> Unpin for Model<Point>
impl<Point> !UnwindSafe for Model<Point>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more