¡@

Home 

python Programming Glossary: zvalues

How to create a list of random integer vector whose sum is x

http://stackoverflow.com/questions/11380491/how-to-create-a-list-of-random-integer-vector-whose-sum-is-x

3 sigma HighSigma 3# 3 sigma StepSize 1 float ListSize 1 ZValues LowSigma 1 i StepSize i StepSize HighSigma for i in range int.. self.NormalDistributionFunction Mean Var x for x in ZValues NormalDistro list for i in range len ZValues if i 0 ERFCVAL.. x for x in ZValues NormalDistro list for i in range len ZValues if i 0 ERFCVAL 0.5 math.erfc ZValues i math.sqrt 2 NormalDistro.append..