package
6.7.0-alpha+incompatible
Repository: https://github.com/pingcap/tidb.git
Documentation: pkg.go.dev
# Functions
Abs implement the abs function according to http://cavaliercoder.com/blog/optimized-abs-for-int64-in-go.html.
Clamp restrict a value to a certain interval.
IsFinite reports whether f is neither NaN nor an infinity.
Max returns the largest one from its arguments.
Min returns the smallest one from its arguments.
NewExponentialMovingAverage will create a new ExponentialMovingAverage.
NewWithSeed create a rng with random seed.
NewWithTime create a rng with time stamp.
StrLenOfInt64Fast efficiently calculate the string character lengths of an int64 as input.
StrLenOfUint64Fast efficiently calculate the string character lengths of an uint64 as input.
# Constants
Architecture and/or implementation specific integer limits and bit widths.
Architecture and/or implementation specific integer limits and bit widths.
Architecture and/or implementation specific integer limits and bit widths.
Architecture and/or implementation specific integer limits and bit widths.
# Structs
ExponentialMovingAverage is an exponential moving average measurement implementation.
MysqlRng is random number generator and this implementation is ported from MySQL.