pub struct LogisticKernelWindowed { /* private fields */ }Expand description
Logistic kernel restricted to an asymmetric frequency window
The kernel formula is that of LogisticKernel; the non-centrosymmetry
comes solely from restricting the y (= ω/wmax) domain to [ymin, ymax]
with ymin < ymax and max(|ymin|, |ymax|) == 1, so that
Λ = β·wmax with wmax = max(|ωmin|, |ωmax|). The window need not contain
0: a one-sided window such as [0, ωmax] is accepted. Its SVE goes through the
full-domain strategy, and its singular functions have no definite parity.
Implementations§
Source§impl LogisticKernelWindowed
impl LogisticKernelWindowed
Sourcepub fn from_physical(
beta: f64,
omega_min: f64,
omega_max: f64,
) -> Result<LogisticKernelWindowed, Error>
pub fn from_physical( beta: f64, omega_min: f64, omega_max: f64, ) -> Result<LogisticKernelWindowed, Error>
Create the kernel for inverse temperature beta and the frequency
window [omega_min, omega_max]
§Errors
Error::InvalidParameter if beta is not positive and finite, or
omega_min and omega_max are not finite with omega_min < omega_max
Trait Implementations§
Source§impl BasisKernel for LogisticKernelWindowed
impl BasisKernel for LogisticKernelWindowed
Source§fn kernel_lambda(&self) -> f64
fn kernel_lambda(&self) -> f64
CentrosymmKernel::lambda for a
centrosymmetric kernel; named apart from it so that both traits can
be in scope)Source§impl Clone for LogisticKernelWindowed
impl Clone for LogisticKernelWindowed
Source§fn clone(&self) -> LogisticKernelWindowed
fn clone(&self) -> LogisticKernelWindowed
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for LogisticKernelWindowed
Source§impl Debug for LogisticKernelWindowed
impl Debug for LogisticKernelWindowed
impl ExpandableKernel for LogisticKernelWindowed
Source§impl KernelProperties for LogisticKernelWindowed
impl KernelProperties for LogisticKernelWindowed
Source§fn conv_radius(&self) -> f64
fn conv_radius(&self) -> f64
The convergence radius of the LogisticKernel with the same Λ
Source§fn regularizer<S>(&self, beta: f64, omega: f64) -> f64where
S: StatisticsType + 'static,
fn regularizer<S>(&self, beta: f64, omega: f64) -> f64where
S: StatisticsType + 'static,
The regularizer of LogisticKernel, whose formula this kernel shares
Source§impl SVEKernel for LogisticKernelWindowed
impl SVEKernel for LogisticKernelWindowed
Source§type SVEHintsType<T: Copy + Debug + Send + Sync + CustomNumeric + 'static> = LogisticWindowedSVEHints<T>
type SVEHintsType<T: Copy + Debug + Send + Sync + CustomNumeric + 'static> = LogisticWindowedSVEHints<T>
Source§fn sve_hints<T>(
&self,
epsilon: f64,
) -> <LogisticKernelWindowed as SVEKernel>::SVEHintsType<T>
fn sve_hints<T>( &self, epsilon: f64, ) -> <LogisticKernelWindowed as SVEKernel>::SVEHintsType<T>
Auto Trait Implementations§
impl Freeze for LogisticKernelWindowed
impl RefUnwindSafe for LogisticKernelWindowed
impl Send for LogisticKernelWindowed
impl Sync for LogisticKernelWindowed
impl Unpin for LogisticKernelWindowed
impl UnsafeUnpin for LogisticKernelWindowed
impl UnwindSafe for LogisticKernelWindowed
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
fn rand<T>(&self, rng: &mut (impl Rng + ?Sized)) -> Twhere
Self: Distribution<T>,
impl<T, U> Imply<T> for U
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> ⓘ
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> ⓘ
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 moreimpl<T> MaybeSend for Twhere
T: Send,
impl<T> MaybeSendSync for T
impl<T> MaybeSync for Twhere
T: Sync,
§impl<T> Pointable for T
impl<T> Pointable for T
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
§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>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
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
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.