harddecision

package
v0.0.0-...-8ff7918 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2023 License: MIT Imports: 3 Imported by: 0

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)

func (*DWBF_F) Reset

func (D *DWBF_F) Reset()

type Gallager

type Gallager struct {
	H mat.SparseMat
	// contains filtered or unexported fields
}

func (*Gallager) Flip

func (g *Gallager) Flip(currentSyndromes mat.SparseVector, currentCodeword mat.SparseVector) (nextCodeword mat.SparseVector, done bool)

func (*Gallager) Reset

func (g *Gallager) Reset()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL