Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BitFlipping ¶
func BitFlipping(bitFlippingAlg BitFlippingAlg, H mat.SparseMat, codeword mat.SparseVector, maxIter int) (result mat.SparseVector)
Types ¶
type BitFlippingAlg ¶
type BitFlippingAlg interface { Flip(currentSyndromes mat.SparseVector, currentCodeword mat.SparseVector) (nextCodeword mat.SparseVector, done bool) Reset() //resets internal state for next codeword }
type DWBF_F ¶
type DWBF_F struct { AlphaFactor float64 //α: 0 < α < 1 EtaThreshold float64 //η: no requirement but frequently 0.0 is a good value H mat.SparseMat // contains filtered or unexported fields }
DWBF_F is a single bit flipping hard decision alg based on the paper "Dynamic Weighted Bit-Flipping Decoding Algorithms for LDPC Codes" by Tofar C.-Y. Chang and Yu T. Su
func (*DWBF_F) Flip ¶
func (D *DWBF_F) Flip(currentSyndromes mat.SparseVector, currentCodeword mat.SparseVector) (nextCodeword mat.SparseVector, done bool)
type Gallager ¶
func (*Gallager) Flip ¶
func (g *Gallager) Flip(currentSyndromes mat.SparseVector, currentCodeword mat.SparseVector) (nextCodeword mat.SparseVector, done bool)
Click to show internal directories.
Click to hide internal directories.