pub enum KNNWeightFunction {
Uniform,
Distance,
}
Expand description
Weight function that is used to determine estimated value.
Variants§
Uniform
All k nearest points are weighted equally
Distance
k nearest points are weighted by the inverse of their distance. Closer neighbors will have a greater influence than neighbors which are further away.
Trait Implementations§
Source§impl Clone for KNNWeightFunction
impl Clone for KNNWeightFunction
Source§fn clone(&self) -> KNNWeightFunction
fn clone(&self) -> KNNWeightFunction
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for KNNWeightFunction
impl Debug for KNNWeightFunction
Source§impl Default for KNNWeightFunction
impl Default for KNNWeightFunction
Source§fn default() -> KNNWeightFunction
fn default() -> KNNWeightFunction
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for KNNWeightFunction
impl RefUnwindSafe for KNNWeightFunction
impl Send for KNNWeightFunction
impl Sync for KNNWeightFunction
impl Unpin for KNNWeightFunction
impl UnwindSafe for KNNWeightFunction
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