Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Proba ¶
type Proba struct {
// contains filtered or unexported fields
}
A Proba 用来测试是否在给定的可能性以内。
func (*Proba) TrueOnProba ¶
TrueOnProba 用来测试是否在给定的可能性以内。 proba越小,truth的可能性就越低
type Unstable ¶
type Unstable struct {
// contains filtered or unexported fields
}
A Unstable 用来生成基于给定的偏差(deviation)在某个具体值(base)上下浮动的随机数。
func (Unstable) AroundDuration ¶
AroundDuration 基于给定的base和偏差生成一个随机时间
Click to show internal directories.
Click to hide internal directories.