signal::units
Number suffixes for frequencies and times, so a call reads like its
spec sheet: butter(4, Band::Lowpass(100hz), fs: 8khz). Each gives a
plain f64, frequencies in hertz and times in seconds, so they mix
with any other number. Priority -1: a dependency of yours that
registers the same suffix wins.
Functions
hertzSource
pub const fn hertz(n: f64) -> f64 10hz is 10.0 (hertz).
nabi
println(2.5hz); // 2.5
kilohertzSource
pub const fn kilohertz(n: f64) -> f64 8khz is 8000.0 (hertz).
nabi
println(44.1khz); // 44100
megahertzSource
pub const fn megahertz(n: f64) -> f64 2mhz is 2000000.0 (hertz).
nabi
println(1mhz); // 1000000
millisecondsSource
pub const fn milliseconds(n: f64) -> f64 5ms is 0.005 (seconds).
nabi
println(250ms); // 0.25
microsecondsSource
pub const fn microseconds(n: f64) -> f64 20us is 0.00002 (seconds).
nabi
println(20us); // 0.00002