circular

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2022 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Circular

type Circular struct {
	// contains filtered or unexported fields
}

func NewCircular

func NewCircular(size int, scale float64) *Circular

func (*Circular) Add

func (c *Circular) Add(value int)

Add value to the current one

func (*Circular) LastValues

func (c *Circular) LastValues(size int) []float64

func (*Circular) Next

func (c *Circular) Next()

Next move current value to the next slot

func (*Circular) Values

func (c *Circular) Values() []float64

Values return values, scaled, with right padding

Jump to

Keyboard shortcuts

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