pub struct MuellerTimingRecovery { /* private fields */ }Expand description
Symbol timing recovery with a Mueller & Müller detector.
Implementations§
Source§impl MuellerTimingRecovery
impl MuellerTimingRecovery
Sourcepub fn new(
samples_per_symbol: f64,
constellation: Constellation,
) -> Result<Self, ErrorsJSL>
pub fn new( samples_per_symbol: f64, constellation: Constellation, ) -> Result<Self, ErrorsJSL>
A loop for a signal with samples_per_symbol (>= 2, may be fractional) samples per symbol
and the given constellation for decisions, with the usual gains: gain_mu = 0.175,
gain_omega = 0.25 · gain_mu² and ω limited to ±0.5% of nominal.
Sourcepub fn with_gains(
samples_per_symbol: f64,
constellation: Constellation,
gain_mu: f64,
gain_omega: f64,
omega_relative_limit: f64,
) -> Result<Self, ErrorsJSL>
pub fn with_gains( samples_per_symbol: f64, constellation: Constellation, gain_mu: f64, gain_omega: f64, omega_relative_limit: f64, ) -> Result<Self, ErrorsJSL>
Like new with explicit loop gains and the relative limit on ω.
Sourcepub fn symbol_period(&self) -> f64
pub fn symbol_period(&self) -> f64
The current estimate of the symbol period in samples.
Sourcepub fn last_error(&self) -> f64
pub fn last_error(&self) -> f64
The most recent timing error from the detector.
Trait Implementations§
Source§impl Clone for MuellerTimingRecovery
impl Clone for MuellerTimingRecovery
Source§impl Debug for MuellerTimingRecovery
impl Debug for MuellerTimingRecovery
Source§impl StreamOperator<Complex<f64>, Complex<f64>> for MuellerTimingRecovery
impl StreamOperator<Complex<f64>, Complex<f64>> for MuellerTimingRecovery
Source§fn process(
&mut self,
data_in: &[Complex<f64>],
) -> Result<Option<Vec<Complex<f64>>>, ErrorsJSL>
fn process( &mut self, data_in: &[Complex<f64>], ) -> Result<Option<Vec<Complex<f64>>>, ErrorsJSL>
Processes a chunk of input data and produces a corresponding chunk of output data. The input and output types can be defined based on the specific requirements of the application, such as audio samples, video frames, or other types of data.
This method is called repeatedly as new data becomes available in the stream.
Source§fn flush(&mut self) -> Result<Option<Vec<Complex<f64>>>, ErrorsJSL>
fn flush(&mut self) -> Result<Option<Vec<Complex<f64>>>, ErrorsJSL>
Flushes any remaining data in the operator’s internal buffers and produces any final output data. This method is typically called at the end of a stream or when the operator needs to be shut down, allowing it to perform any necessary cleanup or final computations before the stream is terminated.
Source§impl StreamOperatorManagement for MuellerTimingRecovery
impl StreamOperatorManagement for MuellerTimingRecovery
Auto Trait Implementations§
impl Freeze for MuellerTimingRecovery
impl RefUnwindSafe for MuellerTimingRecovery
impl Send for MuellerTimingRecovery
impl Sync for MuellerTimingRecovery
impl Unpin for MuellerTimingRecovery
impl UnsafeUnpin for MuellerTimingRecovery
impl UnwindSafe for MuellerTimingRecovery
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
Mutably borrows from an owned value. Read more