utils

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 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 Float64IndexOf added in v0.8.1

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

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 Int64IndexOf added in v0.8.1

func Int64IndexOf(s stat.Series, n int) int64

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 deprecated added in v0.7.8

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

SeriesIndexOf 获取序列第n索引的值

Deprecated: 推荐使用 Float64IndexOf

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