Enum hrbf::KernelType
source · pub enum KernelType<K> {
Variable(Vec<K>),
Constant(K),
}
Expand description
HRBF specific kernel type. In general, we can assign a unique kernel to each HRBF site, or we can use the same kernel for all points. This corresponds to Variable and Constant kernel types respectively.
Variants§
Variable(Vec<K>)
Each site has its own kernel, although all kernels must have the same type.
Constant(K)
Same kernel for all sites.
Trait Implementations§
source§impl<K: Clone> Clone for KernelType<K>
impl<K: Clone> Clone for KernelType<K>
source§fn clone(&self) -> KernelType<K>
fn clone(&self) -> KernelType<K>
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<K: Debug> Debug for KernelType<K>
impl<K: Debug> Debug for KernelType<K>
Auto Trait Implementations§
impl<K> RefUnwindSafe for KernelType<K>where K: RefUnwindSafe,
impl<K> Send for KernelType<K>where K: Send,
impl<K> Sync for KernelType<K>where K: Sync,
impl<K> Unpin for KernelType<K>where K: Unpin,
impl<K> UnwindSafe for KernelType<K>where K: UnwindSafe,
Blanket Implementations§
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.