Enum linfa_kernel::KernelType
source · [−]pub enum KernelType {
Dense,
Sparse(usize),
}
Expand description
Kernel representation, can be either dense or sparse
Variants
Dense
Sparse(usize)
A sparse kernel requires to define a number of neighbours between 1 and the total number of samples in input minus one.
Trait Implementations
sourceimpl Clone for KernelType
impl Clone for KernelType
sourcefn clone(&self) -> KernelType
fn clone(&self) -> KernelType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for KernelType
impl Debug for KernelType
sourceimpl Hash for KernelType
impl Hash for KernelType
sourceimpl PartialEq<KernelType> for KernelType
impl PartialEq<KernelType> for KernelType
sourcefn eq(&self, other: &KernelType) -> bool
fn eq(&self, other: &KernelType) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &KernelType) -> bool
fn ne(&self, other: &KernelType) -> bool
This method tests for !=
.
impl Eq for KernelType
impl StructuralEq for KernelType
impl StructuralPartialEq for KernelType
Auto Trait Implementations
impl RefUnwindSafe for KernelType
impl Send for KernelType
impl Sync for KernelType
impl Unpin for KernelType
impl UnwindSafe for KernelType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
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
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.