pub struct FittedTypeSafeKernelApproximation<Kernel, Method, const N_COMPONENTS: usize>where
Kernel: KernelType,
Method: ApproximationMethod,{ /* private fields */ }Expand description
Fitted kernel approximation that can transform data FittedTypeSafeKernelApproximation
Implementations§
Source§impl<Kernel, Method, const N_COMPONENTS: usize> FittedTypeSafeKernelApproximation<Kernel, Method, N_COMPONENTS>where
Kernel: KernelType,
Method: ApproximationMethod,
impl<Kernel, Method, const N_COMPONENTS: usize> FittedTypeSafeKernelApproximation<Kernel, Method, N_COMPONENTS>where
Kernel: KernelType,
Method: ApproximationMethod,
Sourcepub fn transform(&self, data: &Array2<f64>) -> Result<Array2<f64>>
pub fn transform(&self, data: &Array2<f64>) -> Result<Array2<f64>>
Transform data using the fitted approximation
Sourcepub fn quality_metrics(&self) -> &QualityMetrics
pub fn quality_metrics(&self) -> &QualityMetrics
Get approximation quality metrics
Sourcepub const fn n_components() -> usize
pub const fn n_components() -> usize
Get the number of components (compile-time constant)
Sourcepub fn kernel_name(&self) -> &'static str
pub fn kernel_name(&self) -> &'static str
Get kernel type name
Sourcepub fn method_name(&self) -> &'static str
pub fn method_name(&self) -> &'static str
Get approximation method name
Trait Implementations§
Source§impl<Kernel, Method, const N_COMPONENTS: usize> Clone for FittedTypeSafeKernelApproximation<Kernel, Method, N_COMPONENTS>
impl<Kernel, Method, const N_COMPONENTS: usize> Clone for FittedTypeSafeKernelApproximation<Kernel, Method, N_COMPONENTS>
Source§fn clone(
&self,
) -> FittedTypeSafeKernelApproximation<Kernel, Method, N_COMPONENTS>
fn clone( &self, ) -> FittedTypeSafeKernelApproximation<Kernel, Method, N_COMPONENTS>
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<Kernel, Method, const N_COMPONENTS: usize> Debug for FittedTypeSafeKernelApproximation<Kernel, Method, N_COMPONENTS>
impl<Kernel, Method, const N_COMPONENTS: usize> Debug for FittedTypeSafeKernelApproximation<Kernel, Method, N_COMPONENTS>
Auto Trait Implementations§
impl<Kernel, Method, const N_COMPONENTS: usize> Freeze for FittedTypeSafeKernelApproximation<Kernel, Method, N_COMPONENTS>
impl<Kernel, Method, const N_COMPONENTS: usize> RefUnwindSafe for FittedTypeSafeKernelApproximation<Kernel, Method, N_COMPONENTS>where
Kernel: RefUnwindSafe,
Method: RefUnwindSafe,
impl<Kernel, Method, const N_COMPONENTS: usize> Send for FittedTypeSafeKernelApproximation<Kernel, Method, N_COMPONENTS>
impl<Kernel, Method, const N_COMPONENTS: usize> Sync for FittedTypeSafeKernelApproximation<Kernel, Method, N_COMPONENTS>
impl<Kernel, Method, const N_COMPONENTS: usize> Unpin for FittedTypeSafeKernelApproximation<Kernel, Method, N_COMPONENTS>
impl<Kernel, Method, const N_COMPONENTS: usize> UnwindSafe for FittedTypeSafeKernelApproximation<Kernel, Method, N_COMPONENTS>where
Kernel: UnwindSafe,
Method: 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