signal

package
v0.0.0-...-40a34ec Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 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 Minimize

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

Types

type Context

type Context struct {
	Signal  Signal
	Context interface{}
}

type Signal

type Signal map[elemType]prioType // nolint: recvcheck

Signal was hard to refactor when we enabled recvcheck.

func FromRaw

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

func (Signal) Copy

func (s Signal) Copy() Signal

func (Signal) DiffRaw

func (s Signal) DiffRaw(raw []uint64, 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) ToRaw

func (s Signal) ToRaw() []uint64

Jump to

Keyboard shortcuts

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