pub struct DvbtFrame { /* private fields */ }Expand description
The cells of the frame of a mode: what every carrier of every symbol carries, the pilot PRBS and the data carriers (see the module).
Implementations§
Source§impl DvbtFrame
impl DvbtFrame
Sourcepub fn data_carriers(&self, l: usize) -> &[usize]
pub fn data_carriers(&self, l: usize) -> &[usize]
The data carriers of symbol l, increasing ($N_{\max}$ of them).
Sourcepub fn reference(&self, k: usize) -> f64
pub fn reference(&self, k: usize) -> f64
The sign $2(1/2 - w_{k})$ of the reference signals of carrier k.
Sourcepub fn mean_carrier_power(&self) -> f64
pub fn mean_carrier_power(&self) -> f64
The mean power $E|c|^{2}$ over the $K$ carriers of a symbol: the data and TPS cells at 1, the pilots at 16/9; the same for every symbol (1.0803 in the 2K mode, 1.0800 in the 8K mode).
Sourcepub fn symbol(&self, l: usize, data: &[C64], tps_sign: f64) -> Result<Vec<C64>>
pub fn symbol(&self, l: usize, data: &[C64], tps_sign: f64) -> Result<Vec<C64>>
The $K$ cells of symbol l: the pilots, the TPS carriers with the sign
tps_sign ($d_{l}$ of tps_signs) and the $N_{\max}$ values data on the data
carriers.
§Errors
Error::Shape unless data has $N_{\max}$ values.
Sourcepub fn data_of(&self, l: usize, cells: &[C64]) -> Result<Vec<C64>>
pub fn data_of(&self, l: usize, cells: &[C64]) -> Result<Vec<C64>>
The data cells of the $K$ received cells of symbol l.
§Errors
Error::Shape unless cells has $K$ values.
Sourcepub fn tps_statistic(
&self,
cells: &[C64],
channel: Option<&[C64]>,
) -> Result<f64>
pub fn tps_statistic( &self, cells: &[C64], channel: Option<&[C64]>, ) -> Result<f64>
The statistic of the TPS sign of a received symbol: $\sum_{k} \mathrm{Re}{y_{k}
h_{k}^{*}} \cdot 2(1/2 - w_{k})$ over the TPS carriers, of the sign of $d_{l}$
(channel the gains of the carriers, 1 if None).
§Errors
Error::Shape unless cells (and channel) have $K$ values.