signal

package
v0.0.0-...-f0d17a2 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: Apache-2.0, Apache-2.0 Imports: 1 Imported by: 0

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 Serial

type Serial struct {
	Elems []elemType
	Prios []prioType
}

func (Serial) Deserialize

func (ser Serial) Deserialize() Signal

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

func (s Signal) Len() int

func (*Signal) Merge

func (s *Signal) Merge(s1 Signal)

func (Signal) Serialize

func (s Signal) Serialize() Serial

func (*Signal) Split

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

Jump to

Keyboard shortcuts

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