//
pkg.gl
Category
github.com/qkbyte/go-zero
core
mathx
package
1.3.9
Repository:
https://github.com/qkbyte/go-zero.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
4
Dependents
4
Files
93 SLOC
#
Functions
CalcEntropy
CalcEntropy calculates the entropy of m.
MaxInt
MaxInt returns the larger one of a and b.
MinInt
MinInt returns the smaller one of a and b.
NewProba
NewProba returns a Proba.
NewUnstable
NewUnstable returns a Unstable.
#
Structs
Proba
A Proba is used to test if true on given probability.
Unstable
A Unstable is used to generate random value around the mean value base on given deviation.