pub struct TypeSafeKernelConfig<K: KernelType, M: ApproximationMethod, const N: usize>where
(): ValidatedFeatureSize<N> + KernelMethodCompatibility<K, M> + ApproximationQualityBounds<M>,{ /* private fields */ }Expand description
Advanced type-safe kernel configuration builder TypeSafeKernelConfig
Implementations§
Source§impl<K: KernelType, M: ApproximationMethod, const N: usize> TypeSafeKernelConfig<K, M, N>where
(): ValidatedFeatureSize<N> + KernelMethodCompatibility<K, M> + ApproximationQualityBounds<M>,
impl<K: KernelType, M: ApproximationMethod, const N: usize> TypeSafeKernelConfig<K, M, N>where
(): ValidatedFeatureSize<N> + KernelMethodCompatibility<K, M> + ApproximationQualityBounds<M>,
Sourcepub fn bandwidth(self, bandwidth: f64) -> Self
pub fn bandwidth(self, bandwidth: f64) -> Self
Set bandwidth parameter with compile-time validation
Sourcepub fn quality_threshold(self, threshold: f64) -> Self
pub fn quality_threshold(self, threshold: f64) -> Self
Set quality threshold with bounds checking
Sourcepub const fn performance_tier() -> PerformanceTier
pub const fn performance_tier() -> PerformanceTier
Get performance tier for this configuration
Sourcepub const fn memory_complexity() -> ComplexityClass
pub const fn memory_complexity() -> ComplexityClass
Get memory complexity for this configuration
Sourcepub fn theoretical_error_bound(
&self,
n_samples: usize,
n_features: usize,
) -> f64
pub fn theoretical_error_bound( &self, n_samples: usize, n_features: usize, ) -> f64
Compute theoretical error bound for given data size
Sourcepub fn meets_quality_requirements(
&self,
n_samples: usize,
n_features: usize,
) -> bool
pub fn meets_quality_requirements( &self, n_samples: usize, n_features: usize, ) -> bool
Check if configuration meets quality requirements
Trait Implementations§
Source§impl<K: Clone + KernelType, M: Clone + ApproximationMethod, const N: usize> Clone for TypeSafeKernelConfig<K, M, N>where
(): ValidatedFeatureSize<N> + KernelMethodCompatibility<K, M> + ApproximationQualityBounds<M>,
impl<K: Clone + KernelType, M: Clone + ApproximationMethod, const N: usize> Clone for TypeSafeKernelConfig<K, M, N>where
(): ValidatedFeatureSize<N> + KernelMethodCompatibility<K, M> + ApproximationQualityBounds<M>,
Source§fn clone(&self) -> TypeSafeKernelConfig<K, M, N>
fn clone(&self) -> TypeSafeKernelConfig<K, M, N>
Returns a duplicate 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 + KernelType, M: Debug + ApproximationMethod, const N: usize> Debug for TypeSafeKernelConfig<K, M, N>where
(): ValidatedFeatureSize<N> + KernelMethodCompatibility<K, M> + ApproximationQualityBounds<M>,
impl<K: Debug + KernelType, M: Debug + ApproximationMethod, const N: usize> Debug for TypeSafeKernelConfig<K, M, N>where
(): ValidatedFeatureSize<N> + KernelMethodCompatibility<K, M> + ApproximationQualityBounds<M>,
Source§impl<K: KernelType, M: ApproximationMethod, const N: usize> Default for TypeSafeKernelConfig<K, M, N>where
(): ValidatedFeatureSize<N> + KernelMethodCompatibility<K, M> + ApproximationQualityBounds<M>,
impl<K: KernelType, M: ApproximationMethod, const N: usize> Default for TypeSafeKernelConfig<K, M, N>where
(): ValidatedFeatureSize<N> + KernelMethodCompatibility<K, M> + ApproximationQualityBounds<M>,
Auto Trait Implementations§
impl<K, M, const N: usize> Freeze for TypeSafeKernelConfig<K, M, N>
impl<K, M, const N: usize> RefUnwindSafe for TypeSafeKernelConfig<K, M, N>where
K: RefUnwindSafe,
M: RefUnwindSafe,
impl<K, M, const N: usize> Send for TypeSafeKernelConfig<K, M, N>
impl<K, M, const N: usize> Sync for TypeSafeKernelConfig<K, M, N>
impl<K, M, const N: usize> Unpin for TypeSafeKernelConfig<K, M, N>
impl<K, M, const N: usize> UnwindSafe for TypeSafeKernelConfig<K, M, N>where
K: UnwindSafe,
M: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more