util

package
v0.0.0-...-f2d3015 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(path string) bool

func HasArg

func HasArg(name string) bool

func HasSocket

func HasSocket(pid int) (bool, error)

Types

type Processes

type Processes struct {
	Verbose bool
	// contains filtered or unexported fields
}

func MakeProcesses

func MakeProcesses(verbose bool) *Processes

func (*Processes) LaunchHeadless

func (p *Processes) LaunchHeadless(argv []string, logfile string, cwd string) (pid int)

func (*Processes) LaunchInTerminal

func (p *Processes) LaunchInTerminal(argv []string, title string, cwd string) (pid int)

func (*Processes) Signal

func (p *Processes) Signal(signal os.Signal)

func (*Processes) WaitAll

func (p *Processes) WaitAll()

func (*Processes) WaitAllTimeout

func (p *Processes) WaitAllTimeout(timeout time.Duration) (timedout bool)

func (*Processes) WaitAnyCh

func (p *Processes) WaitAnyCh() <-chan void

type ViterbiState

type ViterbiState struct {
	// variable
	Backtrack   [][]uint // at each time step, the most likely prior state
	Likelihoods []float64
	// constant
	Debug                   bool
	NumHiddenStates         uint
	StateTransitions        [][]float64
	ObservationLikelihoodFn func(interface{}) []float64
}

func (*ViterbiState) ExtractPath

func (v *ViterbiState) ExtractPath() []uint

func (*ViterbiState) NextPeriod

func (v *ViterbiState) NextPeriod(observation interface{}, debug interface{})

Jump to

Keyboard shortcuts

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