fec

package
v0.0.0-...-6529675 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2017 License: Apache-2.0 Imports: 7 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SHA1DirectBinVerifier

func SHA1DirectBinVerifier(data []bool, hash []bool) bool

Types

type DataConfidenceCollection

type DataConfidenceCollection struct {
	HashVerifier func(data []bool, hash []bool) bool
	// contains filtered or unexported fields
}

func (*DataConfidenceCollection) Add

func (d *DataConfidenceCollection) Add(bit bool, bitConfidence float64)

func (*DataConfidenceCollection) AddRedundantCollection

func (d *DataConfidenceCollection) AddRedundantCollection(redundant *DataConfidenceCollection)

func (*DataConfidenceCollection) Append

func (d *DataConfidenceCollection) Append(appendage *DataConfidenceCollection)

func (*DataConfidenceCollection) CorrectData

func (d *DataConfidenceCollection) CorrectData(hash *DataConfidenceCollection, hashValidated bool) bool

func (*DataConfidenceCollection) CorrectDataWithRedundancy

func (d *DataConfidenceCollection) CorrectDataWithRedundancy()

func (DataConfidenceCollection) Data

func (d DataConfidenceCollection) Data() []bool

func (*DataConfidenceCollection) Deinterleave

func (d *DataConfidenceCollection) Deinterleave()

func (DataConfidenceCollection) Get

func (d DataConfidenceCollection) Get(index int) (bool, float64)

func (DataConfidenceCollection) LeastConfidentBitIndexes

func (d DataConfidenceCollection) LeastConfidentBitIndexes(number int) []int

func (DataConfidenceCollection) Length

func (d DataConfidenceCollection) Length() int

func (*DataConfidenceCollection) Slice

func (d *DataConfidenceCollection) Slice(leftEnd, length int) *DataConfidenceCollection

Jump to

Keyboard shortcuts

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