Location:
Search - localRand
Search list
Description: 常用随机数发生器,C实现
/*
* 文件包含了6个函数,它们能产生符合相应分布的规律的随机数:
* GenUniformRnd : 产生一个随机数,符合均匀分布。(伪随机序列)
* GenBernoulliRnd : 产生一个随机数,符合伯努利分布。
* GenBinomialRnd : 产生一个随机数,符合二项分布。
* GenPoissonRnd : 产生一个随机数,符合泊松分布。
* GenExponentRnd : 产生一个随机数,符合指数分布。
* GenGaussRnd : 产生一个随机数,符合高斯分布。
*/-Common random number generator, C implementation /** file contains six functions, they can produce in line with the corresponding distribution laws of random numbers:* GenUniformRnd: generate a random number, in line with evenly distributed. (Pseudo-random sequence)* GenBernoulliRnd: generate a random number, in line with the Bernoulli distribution.* GenBinomialRnd: generate a random number, in line with binomial distribution.* GenPoissonRnd: generate a random number, in line with Poisson distribution.* GenExponentRnd: generate a random number, in line with exponential distribution.* GenGaussRnd: generate a random number, in line with Gaussian distribution.* /
Platform: |
Size: 1024 |
Author: lo |
Hits: