common

package
v0.0.0-...-0d6890e Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatSize

func FormatSize(bytes uint64) string

Types

type Pipe

type Pipe struct {
	Length int
	Data   []float64
	// contains filtered or unexported fields
}

定长管道

func (*Pipe) NewPipe

func (P *Pipe) NewPipe(length int)

func (*Pipe) Push

func (P *Pipe) Push(n float64)

func (*Pipe) Show

func (P *Pipe) Show() []float64

type Rate

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

func (*Rate) Get

func (R *Rate) Get() (newData, oldData float64)

func (*Rate) GetRate

func (R *Rate) GetRate(data float64, t float64) float64

func (*Rate) Push

func (R *Rate) Push(n float64)

Jump to

Keyboard shortcuts

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