pub struct KernelComparison {
pub kernel_names: Vec<String>,
pub scores: Vec<f64>,
pub std_devs: Option<Vec<f64>>,
pub best_index: usize,
}Expand description
Comparison results for multiple kernels.
Fields§
§kernel_names: Vec<String>Kernel names
scores: Vec<f64>Scores for each kernel
std_devs: Option<Vec<f64>>Standard deviations (if available)
best_index: usizeIndex of the best kernel
Implementations§
Source§impl KernelComparison
impl KernelComparison
Sourcepub fn from_scores(kernel_names: Vec<String>, scores: Vec<f64>) -> Self
pub fn from_scores(kernel_names: Vec<String>, scores: Vec<f64>) -> Self
Create a comparison from scores.
Sourcepub fn with_std_devs(self, std_devs: Vec<f64>) -> Self
pub fn with_std_devs(self, std_devs: Vec<f64>) -> Self
Add standard deviations.
Sourcepub fn best_kernel(&self) -> &str
pub fn best_kernel(&self) -> &str
Get the best kernel name.
Sourcepub fn best_score(&self) -> f64
pub fn best_score(&self) -> f64
Get the best score.
Trait Implementations§
Source§impl Clone for KernelComparison
impl Clone for KernelComparison
Source§fn clone(&self) -> KernelComparison
fn clone(&self) -> KernelComparison
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 moreAuto Trait Implementations§
impl Freeze for KernelComparison
impl RefUnwindSafe for KernelComparison
impl Send for KernelComparison
impl Sync for KernelComparison
impl Unpin for KernelComparison
impl UnwindSafe for KernelComparison
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