signal

package
Version: v0.0.0-...-6c23686 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: Apache-2.0 Imports: 0 Imported by: 8

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

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto