signal

package
v0.0.0-...-af24b05 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 1 Imported by: 52

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 []uint32, ignore, alwaysTake Signal) []uint32

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 []uint32, 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 []uint32) []uint32

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

func (Signal) DiffRaw

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

func (Signal) Empty

func (s Signal) Empty() bool

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) RandomSubset

func (s Signal) RandomSubset(r *rand.Rand, size int) 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() []uint32

Jump to

Keyboard shortcuts

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