Struct sonogram::FreqScaler
source · [−]pub struct FreqScaler;
Implementations
sourceimpl FreqScaler
impl FreqScaler
sourcepub fn create(
freq_scale: FrequencyScale,
f_max_orig: usize,
f_max_new: usize
) -> Box<dyn FreqScalerTrait>
pub fn create(
freq_scale: FrequencyScale,
f_max_orig: usize,
f_max_new: usize
) -> Box<dyn FreqScalerTrait>
Create an instance of [FreqScalerTrait] given the FrequencyScale.
Arguments
freq_scale
- The FrequencyScale to implement.f_max_orig
- the half the data length, i.e. the nyquist frequency.f_max_new
- The output grid/image height in cells/pixels.
Auto Trait Implementations
impl RefUnwindSafe for FreqScaler
impl Send for FreqScaler
impl Sync for FreqScaler
impl Unpin for FreqScaler
impl UnwindSafe for FreqScaler
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more