utils

package
v0.7.9 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrAccelerationNotSupported = errors.New("acceleration not supported on this platform")
)

Functions

func BoolIndexOf added in v0.7.8

func BoolIndexOf(s stat.Series, n int) bool

func GetPages added in v0.7.8

func GetPages(pageSize, count int) (pages int)

GetPages 计算页数

func IndexReverse added in v0.7.8

func IndexReverse(s stat.Series) stat.Series

func IntegerIndexOf added in v0.7.8

func IntegerIndexOf(s stat.Series, n int) int

func Optimize added in v0.7.8

func Optimize()

Optimize 系统优化系列

func SeriesChangeRate added in v0.7.8

func SeriesChangeRate(base, v stat.Series) stat.Series

SeriesChangeRate 计算两个序列的净增长

func SeriesIndexOf added in v0.7.8

func SeriesIndexOf(s stat.Series, n int) float64

SeriesIndexOf 获取序列第n索引的值

func StringIndexOf added in v0.7.8

func StringIndexOf(s stat.Series, n int) string

func Timestamp added in v0.7.8

func Timestamp() (timestamp int64)

Timestamp 毫秒时间戳

Types

This section is empty.

Jump to

Keyboard shortcuts

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