Trait sample::FloatSample [−][src]
pub trait FloatSample: Sample<Signed = Self, Float = Self> + SignedSample + Mul<Output = Self> + Div<Output = Self> + Duplex<f32> + Duplex<f64> { fn identity() -> Self; fn sample_sqrt(self) -> Self; }
Sample format types represented as floating point numbers.
Samples often need to be converted to some mutual FloatSample type for signal scaling and modulation.
Required Methods
fn identity() -> Self
Represents the multiplicative identity of the floating point signal.
fn sample_sqrt(self) -> Self
Calculate the square root of Self
.
Implementations on Foreign Types
impl FloatSample for f32
[src]
impl FloatSample for f32
fn identity() -> Self
[src]
fn identity() -> Self
fn sample_sqrt(self) -> Self
[src]
fn sample_sqrt(self) -> Self
impl FloatSample for f64
[src]
impl FloatSample for f64
fn identity() -> Self
[src]
fn identity() -> Self
fn sample_sqrt(self) -> Self
[src]
fn sample_sqrt(self) -> Self