class_docstr: Binomial Distribution 
class_docstr_tok: ["Binomial","Distribution"]
docstr: Returns log probability of x 
code: def logp(self, x):
      """Returns log probability of x"""
      if x < 0 or x > self.n:
          return -np.inf
  
      value = np.math.factorial(self.n)
      value = value / float(
          np.math.factorial(x) * np.math.factorial(self.n - x)
      )
      return (
          np.log(value)
          + x * np.log(self.p)
          + (self.n - x) * np.log(1 - self.p)
      )
  
imports: from __future__ import absolute_import
  import numpy
  from .distribution import Discrete
  from ..exd import domains
label_desc: Use image node_id 5 for calling the Binomial obj's underlying member method code with example usage: obj.logp(x) and returns: unknown, unknown