Documentation ¶
Overview ¶
* @author PalletOne core developers <dev@pallet.one> * @date 2018
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ApproxBinomial ¶
type ApproxBinomial struct { N uint64 // contains filtered or unexported fields }
ApproxBinomial is an approximate distribution function of Binomial distribution. It can only be used when τ >>> W (when p = τ / W ).
func NewApproxBinomial ¶
func NewApproxBinomial(expected int64, n uint64) *ApproxBinomial
type PrivateKey ¶
type PrivateKey struct {
// contains filtered or unexported fields
}
func (*PrivateKey) PublicKey ¶
func (priv *PrivateKey) PublicKey() *PublicKey
type RegularBinomial ¶
Binomial implements the binomial distribution function. It's too slow!!!
func NewBinomial ¶
func NewBinomial(n, pn, pd int64) *RegularBinomial
func (*RegularBinomial) Probability ¶
func (b *RegularBinomial) Probability() *big.Rat
Click to show internal directories.
Click to hide internal directories.