JS8Call-Improved master
Loading...
Searching...
No Matches
js8::WhiteningProcessor< NROWS, ND, N > Class Template Reference

Compute per-tone/symbol noise medians and whiten LLRs for a JS8 frame. More...

#include <whitening_processor.h>

Classes

struct  Result
 Result of a whitening/LLR pass. More...

Public Types

enum class  Normalization { None , FrameSigma283 }

Static Public Member Functions

static Result process (std::array< std::array< float, ND >, NROWS > const &s1, std::array< int, ND > const &symbolWinners, float erasureThreshold, bool debug, std::optional< CoherentBlend< NROWS, ND > > const &coherentBlend=std::nullopt, float llrScale=1.0f, Normalization normalization=Normalization::None)
 Compute primary and noncoherent fallback LLRs for a candidate frame.

Detailed Description

template<int NROWS, int ND, int N>
class js8::WhiteningProcessor< NROWS, ND, N >

Compute per-tone/symbol noise medians and whiten LLRs for a JS8 frame.

Given symbol magnitudes (sans Costas) and winners, produces noise-scaled LLR0/LLR1, optionally applying whitening and erasure. Fully templated on matrix dimensions, so it stays header-only; used inside the JS8 decoder per candidate.

Member Function Documentation

◆ process()

template<int NROWS, int ND, int N>
Result js8::WhiteningProcessor< NROWS, ND, N >::process ( std::array< std::array< float, ND >, NROWS > const & s1,
std::array< int, ND > const & symbolWinners,
float erasureThreshold,
bool debug,
std::optional< CoherentBlend< NROWS, ND > > const & coherentBlend = std::nullopt,
float llrScale = 1.0f,
Normalization normalization = Normalization::None )
inlinestatic

Compute primary and noncoherent fallback LLRs for a candidate frame.

The template parameters describe the matrix dimensions used by the decoder: NROWS is the number of tones (rows), ND is the number of symbols (columns) and N is a helper parameter used by the decoder (kept for API parity). The input s1 is an array of NROWS rows, each containing ND magnitudes (per-symbol). For each symbol column the routine computes three LLR entries (placed into contiguous slots of llr0/llr1) and optionally applies noise whitening and erasure.

Parameters
s1Per-tone arrays of symbol magnitudes; index as s1[row][col].
symbolWinnersFor each symbol column, the index [0..NROWS-1] identifying the winning tone.
erasureThresholdWhen > 0.0, magnitudes below this threshold (after fixed scaling) are erased (set to zero).
debugWhen true, emits extra debug logging about noise metrics.
coherentBlendOptional physical coherent numerators in s1 orientation ([tone][symbol]), holding A*projection - 0.5*A*A per tone. The decoder scales them by its own per-symbol invSigma2 exactly like the noncoherent power numerators, so no symbol is ever renormalized. When absent (or when its alpha/amplitude is not usable) the legacy noncoherent scores are used exactly.
llrScaleOne fixed multiplier shared by every frame. Applied before erasure; must be positive and finite.
normalizationOptional old per-frame normalization for benchmarks.
Returns
A Result containing llr0, llr1 and processing statistics.
Here is the call graph for this function:

The documentation for this class was generated from the following file: