Struct imbe::spectral::Spectrals [] [src]

pub struct Spectrals(_);

Spectral amplitudes Ml, 1 ≤ l ≤ L, measure the spectral envelope of the voiced/unvoiced signal spectrum.

Methods

impl Spectrals
[src]

[src]

Create a new Spectrals from the given DCT coefficients vector Tl and current/previous frame parameters.

[src]

Retrieve the spectral amplitude Ml for the given l.

Methods from Deref<Target = ArrayVec<[f32; 56]>>

[src]

Return the number of elements in the ArrayVec.

use arrayvec::ArrayVec;

let mut array = ArrayVec::from([1, 2, 3]);
array.pop();
assert_eq!(array.len(), 2);

[src]

Return the capacity of the ArrayVec.

use arrayvec::ArrayVec;

let array = ArrayVec::from([1, 2, 3]);
assert_eq!(array.capacity(), 3);

[src]

Return if the ArrayVec is completely filled.

use arrayvec::ArrayVec;

let mut array = ArrayVec::<[_; 1]>::new();
assert!(!array.is_full());
array.push(1);
assert!(array.is_full());

[src]

Return a slice containing all elements of the vector.

Trait Implementations

impl Clone for Spectrals
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Deref for Spectrals
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.

impl Default for Spectrals
[src]

[src]

Construct the default set of spectral amplitudes.