linux

package
v0.0.0-...-ef5d53e Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fuzz

func Fuzz(data []byte) int

func ListFromRepo

func ListFromRepo(repo string) ([]*subsystem.Subsystem, error)

Types

type CoincidenceMatrix

type CoincidenceMatrix struct {
	// contains filtered or unexported fields
}

CoincidenceMatrix represents a matrix that, for every pair of subsystems A and B, stores the number of times A and B have coincided in the input data. So far we only need it for subsystem.Subsystem, so its interface is tailored to it.

func BuildCoincidenceMatrix

func BuildCoincidenceMatrix(root fs.FS, list []*subsystem.Subsystem,
	excludeRe *regexp.Regexp) (*CoincidenceMatrix, error)

func MakeCoincidenceMatrix

func MakeCoincidenceMatrix() *CoincidenceMatrix

func (*CoincidenceMatrix) Count

func (cm *CoincidenceMatrix) Count(a *subsystem.Subsystem) int

func (*CoincidenceMatrix) Get

func (cm *CoincidenceMatrix) Get(a, b *subsystem.Subsystem) int

func (*CoincidenceMatrix) NonEmptyPairs

func (cm *CoincidenceMatrix) NonEmptyPairs(cb func(a, b *subsystem.Subsystem, val int))

func (*CoincidenceMatrix) Record

func (cm *CoincidenceMatrix) Record(items ...*subsystem.Subsystem)

Jump to

Keyboard shortcuts

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