示例#1
0
 def logProbability(self, x):
     return logChoose(self.n, x) + x * numpy.log(self.p) + \
       (self.n - x) * numpy.log(1.0 - self.p)
示例#2
0
文件: dist.py 项目: 0x0all/nupic
 def logProbability(self, x):
   return logChoose(self.n, x) + x * numpy.log(self.p) + \
     (self.n - x) * numpy.log(1.0 - self.p)