pub enum Jacobian {
Exact,
MaxLog,
}Expand description
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());Trait Implementations§
impl Copy for Jacobian
impl Eq for Jacobian
impl StructuralPartialEq for Jacobian
Auto Trait Implementations§
impl Freeze for Jacobian
impl RefUnwindSafe for Jacobian
impl Send for Jacobian
impl Sync for Jacobian
impl Unpin for Jacobian
impl UnsafeUnpin for Jacobian
impl UnwindSafe for Jacobian
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more