fifo

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FIFO

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

func NewFIFO

func NewFIFO(maxSize int) FIFO

func (*FIFO) Average

func (f *FIFO) Average() float32

func (*FIFO) First

func (f *FIFO) First() float32

func (*FIFO) Last

func (f *FIFO) Last() float32

func (*FIFO) Push

func (f *FIFO) Push(val float32)

func (*FIFO) Size

func (f *FIFO) Size() int

func (*FIFO) Sum

func (f *FIFO) Sum() float32

Jump to

Keyboard shortcuts

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