pub enum Jacobian {
Exact,
MaxLog,
}Expand description
The Jacobian logarithm, exact or max-log: defined in comnum-core, since the soft
demapper trait comnum_core::traits::Demap takes it, and re-exported here for
max_star, the BCJR and turbo decoders of comnum-fec and the demappers of
comnum-mapping.
The Jacobian logarithm of the log-MAP algorithms and of the soft demappers, exact or
approximated by its maximum:
$$ \ln\left(e^{a} + e^{b}\right) = \max(a, b) + \ln\left(1 + e^{-\lvert a - b \rvert}\right) \approx \max(a, b). $$
One choice for Demap (Demapping::jacobian), max_star of comnum-math (which
re-exports it as comnum_math::Jacobian), the BCJR and turbo decoders of comnum-fec and
the demappers of comnum-mapping; a specification keeps the boolean key max_log
(Jacobian::from_max_log).
Variants§
Implementations§
Source§impl Jacobian
impl Jacobian
Sourcepub fn from_max_log(max_log: bool) -> Jacobian
pub fn from_max_log(max_log: bool) -> Jacobian
Jacobian::MaxLog when max_log is true, Jacobian::Exact otherwise (the
boolean key max_log of the specifications and of the Python API).
§Examples
use comnum_core::traits::Jacobian;
assert_eq!(Jacobian::from_max_log(true), Jacobian::MaxLog);
assert_eq!(Jacobian::from_max_log(false), Jacobian::default());