generator

package
v0.0.0-...-665db2f Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator interface {
	Start()
	Stop()
	SetOut(chan types.DataPoint)
	GetOut() chan types.DataPoint
}

type LinearConfig

type LinearConfig struct {
	SampleRate int     `mirror:"rate_ms"`
	Coeff      float64 `mirror:"coeff"`
	MinVal     float64 `mirror:"min"`
	MaxVal     float64 `mirror:"max"`
}

type LinearGenerator

type LinearGenerator struct {
	Out chan types.DataPoint
	// contains filtered or unexported fields
}

func NewLinearGen

func NewLinearGen(lgc LinearConfig) *LinearGenerator

func (*LinearGenerator) GetOut

func (l *LinearGenerator) GetOut() chan types.DataPoint

func (*LinearGenerator) SetOut

func (l *LinearGenerator) SetOut(o chan types.DataPoint)

func (*LinearGenerator) Start

func (l *LinearGenerator) Start()

func (*LinearGenerator) Stop

func (l *LinearGenerator) Stop()

type SineConfig

type SineConfig struct {
	SampleRate int     `mirror:"rate_ms"`
	Period     float64 `mirror:"period"`
	Amplitude  float64 `mirror:"amplitude"`
}

type SineGenerator

type SineGenerator struct {
	Out chan types.DataPoint
	// contains filtered or unexported fields
}

func NewSineGen

func NewSineGen(sgc SineConfig) *SineGenerator

func (*SineGenerator) GetOut

func (s *SineGenerator) GetOut() chan types.DataPoint

func (*SineGenerator) SetOut

func (s *SineGenerator) SetOut(o chan types.DataPoint)

func (*SineGenerator) Start

func (s *SineGenerator) Start()

func (*SineGenerator) Stop

func (s *SineGenerator) Stop()

Jump to

Keyboard shortcuts

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