pub enum Normalization<T> {
Density,
Spectrum,
Custom(T),
}Expand description
Represents different normalization methods for spectral analysis.
This enum is used to specify how the periodogram should be normalized when computing the power spectral density (PSD) or the power spectrum.
Variants§
Density
Normalization by sampling frequency, producing a power spectral density (PSD).
When used, the resulting spectrum has units of V²/Hz if the input signal is in V
and the sampling frequency is in Hz. The total power of the signal is obtained
by integrating over all frequencies.
Spectrum
Normalization by the sum of squared window coefficients, producing a power spectrum.
When used, the resulting spectrum has units of V² if the input signal is in volts.
This represents the total power distributed across frequency bins.
Custom(T)
Custom normalization factor.
Allows the user to specify a custom normalization value, useful for advanced applications
where neither Density nor Spectrum provide the desired scaling.
Trait Implementations§
Source§impl<T: Clone> Clone for Normalization<T>
impl<T: Clone> Clone for Normalization<T>
Source§fn clone(&self) -> Normalization<T>
fn clone(&self) -> Normalization<T>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl<T: Copy> Copy for Normalization<T>
Source§impl<T: Debug> Debug for Normalization<T>
impl<T: Debug> Debug for Normalization<T>
Source§impl<T: PartialEq> PartialEq for Normalization<T>
impl<T: PartialEq> PartialEq for Normalization<T>
Source§fn eq(&self, other: &Normalization<T>) -> bool
fn eq(&self, other: &Normalization<T>) -> bool
self and other values to be equal, and is used by ==.impl<T> StructuralPartialEq for Normalization<T>
Auto Trait Implementations§
impl<T> Freeze for Normalization<T>where
T: Freeze,
impl<T> RefUnwindSafe for Normalization<T>where
T: RefUnwindSafe,
impl<T> Send for Normalization<T>where
T: Send,
impl<T> Sync for Normalization<T>where
T: Sync,
impl<T> Unpin for Normalization<T>where
T: Unpin,
impl<T> UnsafeUnpin for Normalization<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for Normalization<T>where
T: 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
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,
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 more