class_docstr: Unit test for posterior sampling with Bernoulli likelihood and Beta prior
class_docstr_tok: ["Unit","test","for","posterior","sampling","with","Bernoulli","likelihood","and","Beta","prior"]
docstr: Computes pdf of model 
docstr_tok: ["Computes","pdf","of","model"]
code: def _pdf(self, x):
      """Computes pdf of model"""
      if x < 0 or x > 1:
          return 0
      value = np.power(x, self.Y + self.alpha - 1)
      value = value * np.power(1 - x, self.n - self.Y + self.beta - 1)
      return value
  
file_path: dragonfly/dragonfly/distributions/unittest_posterior_mixed.py
imports: from __future__ import absolute_import
  from __future__ import division
  import unittest
  import numpy
  from .continuous import Beta
  from .model import Model
  from ..utils.base_test_class import BaseTestClass, execute_tests
label_desc: Use image node_id 5 for calling the PosteriorMixedTestCase obj's underlying member method code with example usage: obj._pdf(x) and returns: value, int