Trait ldpc_toolbox::simulation::modulation::Demodulator
source · 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.