pub struct Neighbor {
pub distance: f64,
pub output: f64,
pub weight: f64,
}Expand description
A single nearest neighbor result.
Fields§
§distance: f64Distance from query point (0 = identical).
output: f64Output value of this training point.
weight: f64Instance weight (default 1.0). Higher weight means this point has more influence on predictions.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Neighbor
impl RefUnwindSafe for Neighbor
impl Send for Neighbor
impl Sync for Neighbor
impl Unpin for Neighbor
impl UnsafeUnpin for Neighbor
impl UnwindSafe for Neighbor
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