signal

package
v0.0.0-...-0f61b41 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 0 Imported by: 61

Documentation

Overview

Package signal provides types for working with feedback signal.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterRaw

func FilterRaw(raw []uint64, ignore, alwaysTake Signal) []uint64

FilterRaw returns a subset of original raw elements that either are not present in ignore, or coincides with the one in alwaysTake.

func Minimize

func Minimize(corpus []Context) []interface{}

Types

type Context

type Context struct {
	Signal  Signal
	Context interface{}
}

type Signal

type Signal map[elemType]prioType

func FromRaw

func FromRaw(raw []uint64, prio uint8) Signal

func (Signal) Copy

func (s Signal) Copy() Signal

func (Signal) Diff

func (s Signal) Diff(s1 Signal) Signal

func (Signal) DiffFromRaw

func (s Signal) DiffFromRaw(raw []uint64) []uint64

DiffFromRaw returns a subset of the raw elements that is not present in Signal.

func (Signal) DiffRaw

func (s Signal) DiffRaw(raw []uint64, prio uint8) Signal

func (Signal) Empty

func (s Signal) Empty() bool

func (Signal) HasNew

func (s Signal) HasNew(raw []uint64) bool

HasNew returns true if raw has any new signal that is not present in Signal.

func (Signal) Intersection

func (s Signal) Intersection(s1 Signal) Signal

func (Signal) IntersectsWith

func (s Signal) IntersectsWith(other Signal) bool

func (Signal) Len

func (s Signal) Len() int

func (*Signal) Merge

func (s *Signal) Merge(s1 Signal)

func (*Signal) Split

func (s *Signal) Split(n int) Signal

func (*Signal) Subtract

func (s *Signal) Subtract(s1 Signal)

func (Signal) ToRaw

func (s Signal) ToRaw() []uint64

Jump to

Keyboard shortcuts

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