pub struct TimeFrequencyMap { /* private fields */ }Expand description
Power laid out as channel × frequency × time.
Implementations§
Source§impl TimeFrequencyMap
impl TimeFrequencyMap
pub fn new( power: Array3<f64>, frequencies_hz: Vec<f64>, times_s: Vec<f64>, labels: Vec<String>, ) -> Result<Self, MethodError>
pub fn power(&self) -> ArrayView3<'_, f64>
pub fn frequencies_hz(&self) -> &[f64]
pub fn times_s(&self) -> &[f64]
pub fn labels(&self) -> &[String]
Sourcepub fn with_sampling_rate(
self,
sampling_rate: SamplingRate,
) -> Result<Self, MethodError>
pub fn with_sampling_rate( self, sampling_rate: SamplingRate, ) -> Result<Self, MethodError>
Set when there is one time column per sample at i / fs (CWT, Hilbert spectrum), which
makes the map epochable. STFT frames are not per-sample and leave this unset.
Sourcepub fn with_reliable(self, reliable: Array2<bool>) -> Result<Self, MethodError>
pub fn with_reliable(self, reliable: Array2<bool>) -> Result<Self, MethodError>
Frequency × time mask: false where edge effects make the value unreliable (for example inside a wavelet’s cone of influence).
pub fn sampling_rate(&self) -> Option<SamplingRate>
pub fn reliable(&self) -> Option<ArrayView2<'_, bool>>
Trait Implementations§
Source§impl Clone for TimeFrequencyMap
impl Clone for TimeFrequencyMap
Source§fn clone(&self) -> TimeFrequencyMap
fn clone(&self) -> TimeFrequencyMap
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 Debug for TimeFrequencyMap
impl Debug for TimeFrequencyMap
Source§impl PartialEq for TimeFrequencyMap
impl PartialEq for TimeFrequencyMap
impl StructuralPartialEq for TimeFrequencyMap
Auto Trait Implementations§
impl Freeze for TimeFrequencyMap
impl RefUnwindSafe for TimeFrequencyMap
impl Send for TimeFrequencyMap
impl Sync for TimeFrequencyMap
impl Unpin for TimeFrequencyMap
impl UnwindSafe for TimeFrequencyMap
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