pub trait Demodulator: Send {
type T;
// Required methods
fn from_noise_sigma(noise_sigma: f64) -> Self;
fn demodulate(&self, symbols: &[Self::T]) -> Vec<f64>;
}
Expand description
Demodulator.
This trait defines demodulators, which can compute the bit LLRs for a sequence of symbols.
Required Associated Types§
Required Methods§
Sourcefn from_noise_sigma(noise_sigma: f64) -> Self
fn from_noise_sigma(noise_sigma: f64) -> Self
Creates a new demodulator.
The parameter noise_sigma
indicates the channel noise standard
deviation in its real and imaginary part (or the channel noise standard
deviation if the channel is real).
Sourcefn demodulate(&self, symbols: &[Self::T]) -> Vec<f64>
fn demodulate(&self, symbols: &[Self::T]) -> Vec<f64>
Returns the LLRs corresponding to a sequence of symbols.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.