pub struct EqualizerBuilder { /* private fields */ }Expand description
Builder for the SAME/EAS decision-feedback equalizer
Implementations§
Source§impl EqualizerBuilder
impl EqualizerBuilder
Sourcepub fn with_filter_order(
&mut self,
nfeedforward: usize,
nfeedback: usize,
) -> &mut Self
pub fn with_filter_order( &mut self, nfeedforward: usize, nfeedback: usize, ) -> &mut Self
Set filter order
The filter order controls how many feedforward taps and feedback taps the adaptive filter has to work with.
Higher orders may allow a better fit for channels with longer or more complicated impulse responses. Using a model order that is too high risks overfitting, numeric stability issues, and latency as the filter takes longer to evolve.
We recommend keeping this relatively low. After all, the channel must be suitable for speech signals for human listeners.
Each filter must have at least one tap.
Sourcepub fn with_relaxation(&mut self, relaxation: f32) -> &mut Self
pub fn with_relaxation(&mut self, relaxation: f32) -> &mut Self
NLMS relaxation
Sets the Normalized Least Mean Squares (NLMS) relaxation
parameter. relaxation is the the distance to move each
new impulse response estimate to the zero posteriori error
point: 1.0 goes all the way, while 0.0 doesn’t move at all.
Sometimes called “mu” or “gain.”
This parameter should be set high enough that the algorithm converges during the preamble, before the data is read.
Sourcepub fn with_regularization(&mut self, regularization: f32) -> &mut Self
pub fn with_regularization(&mut self, regularization: f32) -> &mut Self
NLMS regularization
Sets the Normalized Least Mean Squares (NLMS) regularization
parameter. regularization is a main-diagonal weighting
constant that helps keep matrices invertible. Sometimes called
“delta.” Set to zero to disable regularization.
We recommend leaving this parameter alone.
Sourcepub fn filter_order(&self) -> (usize, usize)
pub fn filter_order(&self) -> (usize, usize)
Filter order
Returns filter order of the (feedforward, feedback) portions
of the adaptive filter, respectively.
Sourcepub fn relaxation(&self) -> f32
pub fn relaxation(&self) -> f32
NLMS relaxation
Sourcepub fn regularization(&self) -> f32
pub fn regularization(&self) -> f32
NLMS regularization
Trait Implementations§
Source§impl Clone for EqualizerBuilder
impl Clone for EqualizerBuilder
Source§fn clone(&self) -> EqualizerBuilder
fn clone(&self) -> EqualizerBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for EqualizerBuilder
impl Debug for EqualizerBuilder
Source§impl Default for EqualizerBuilder
impl Default for EqualizerBuilder
Source§impl PartialEq for EqualizerBuilder
impl PartialEq for EqualizerBuilder
Source§impl PartialOrd for EqualizerBuilder
impl PartialOrd for EqualizerBuilder
impl Copy for EqualizerBuilder
impl StructuralPartialEq for EqualizerBuilder
Auto Trait Implementations§
impl Freeze for EqualizerBuilder
impl RefUnwindSafe for EqualizerBuilder
impl Send for EqualizerBuilder
impl Sync for EqualizerBuilder
impl Unpin for EqualizerBuilder
impl UnwindSafe for EqualizerBuilder
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.