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§

source

type T

Scalar type for the symbols.

Required Methods§

source

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).

source

fn demodulate(&self, symbols: &[Self::T]) -> Vec<f64>

Returns the LLRs corresponding to a sequence of symbols.

Implementors§