pub struct ConvolutionalCode {
pub hard_decision: bool,
/* private fields */
}Expand description
A terminated rate-$1/n$ convolutional code over blocks of k information bits,
decoded by soft-decision Viterbi.
Fields§
§hard_decision: boolDecode hard decisions (the signs of the LLRs) instead of the LLRs.
Implementations§
Source§impl ConvolutionalCode
impl ConvolutionalCode
Sourcepub fn new(trellis: Trellis, k: usize) -> Result<ConvolutionalCode>
pub fn new(trellis: Trellis, k: usize) -> Result<ConvolutionalCode>
The code of trellis terminated on blocks of k bits, decoded by soft-decision
Viterbi.
§Errors
comnum_core::Error::Config for $k = 0$.
Sourcepub fn k7(k: usize) -> Result<ConvolutionalCode>
pub fn k7(k: usize) -> Result<ConvolutionalCode>
The $(133, 171)_{8}$ code of constraint length 7, rate 1/2, on blocks of k bits.
§Errors
comnum_core::Error::Config for $k = 0$.
Trait Implementations§
Source§impl BlockCode for ConvolutionalCode
impl BlockCode for ConvolutionalCode
Source§fn encode_block(&self, info: &[u8]) -> Result<Vec<u8>>
fn encode_block(&self, info: &[u8]) -> Result<Vec<u8>>
Encode one block of $k$ bits. Read more
Source§fn decode_block(&self, llr: &[f64]) -> Result<Vec<u8>>
fn decode_block(&self, llr: &[f64]) -> Result<Vec<u8>>
Decode one block of $n$ LLRs into $k$ bits. Read more
Source§fn encode_block_into(&self, info: &[u8], out: &mut [u8]) -> Result<()>
fn encode_block_into(&self, info: &[u8], out: &mut [u8]) -> Result<()>
Encode one block of $k$ bits into the $n$ values of
out (ADR 0011: the default
copies BlockCode::encode_block; a code overrides it when a profile shows the
copy). Read moreSource§fn decode_block_into(&self, llr: &[f64], out: &mut [u8]) -> Result<()>
fn decode_block_into(&self, llr: &[f64], out: &mut [u8]) -> Result<()>
Decode one block of $n$ LLRs into the $k$ values of
out (as
BlockCode::encode_block_into). Read moreSource§impl Clone for ConvolutionalCode
impl Clone for ConvolutionalCode
Source§impl Debug for ConvolutionalCode
impl Debug for ConvolutionalCode
Source§impl Decode for ConvolutionalCode
impl Decode for ConvolutionalCode
Source§impl Encode for ConvolutionalCode
impl Encode for ConvolutionalCode
impl Eq for ConvolutionalCode
Source§impl PartialEq for ConvolutionalCode
impl PartialEq for ConvolutionalCode
Source§impl SoftDecode for ConvolutionalCode
impl SoftDecode for ConvolutionalCode
impl StructuralPartialEq for ConvolutionalCode
Auto Trait Implementations§
impl Freeze for ConvolutionalCode
impl RefUnwindSafe for ConvolutionalCode
impl Send for ConvolutionalCode
impl Sync for ConvolutionalCode
impl Unpin for ConvolutionalCode
impl UnsafeUnpin for ConvolutionalCode
impl UnwindSafe for ConvolutionalCode
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