Enum CwtPaddingMode
#[non_exhaustive]pub enum CwtPaddingMode {
Zero,
Reflect,
Periodic,
}Expand description
CWT boundary-padding mode for the productized phase-coherence signal.
All three modes share the same pad-and-strip pipeline: the input is
extended by pad_len samples on each side using the chosen rule,
the underlying CWT runs on the extended signal, then the boundary
cells are stripped from each per-period row. The signal pins the
FFT-based CWT backend (ferro_wave::transform::cwt_fft); for input
lengths that are not a power of two, that backend internally
zero-pads to next_power_of_two on top of the explicit
extension. Small artifacts can therefore leak into the strip’s
edge cells regardless of the chosen mode — the cwt_padding
metadata names the explicit extension applied at the original
window length, not the FFT backend’s internal padding.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Zero
Pad with zeros outside the signal.
Reflect
Reflect the signal at the boundary using a whole-sample symmetric mirror (the boundary samples appear twice).
Periodic
Wrap circularly across the boundary at the original window
length. (See the enum-level note for the FFT backend’s
internal next_power_of_two zero-pad.)
Implementations§
§impl CwtPaddingMode
impl CwtPaddingMode
Trait Implementations§
§impl Clone for CwtPaddingMode
impl Clone for CwtPaddingMode
§fn clone(&self) -> CwtPaddingMode
fn clone(&self) -> CwtPaddingMode
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for CwtPaddingMode
impl Debug for CwtPaddingMode
§impl Default for CwtPaddingMode
impl Default for CwtPaddingMode
§fn default() -> CwtPaddingMode
fn default() -> CwtPaddingMode
§impl PartialEq for CwtPaddingMode
impl PartialEq for CwtPaddingMode
impl Copy for CwtPaddingMode
impl Eq for CwtPaddingMode
impl StructuralPartialEq for CwtPaddingMode
Auto Trait Implementations§
impl Freeze for CwtPaddingMode
impl RefUnwindSafe for CwtPaddingMode
impl Send for CwtPaddingMode
impl Sync for CwtPaddingMode
impl Unpin for CwtPaddingMode
impl UnwindSafe for CwtPaddingMode
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)§impl<T> IntoEither for T
impl<T> IntoEither for T
§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 more§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§impl<T> Pointable for T
impl<T> Pointable for T
§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.