def compute_moments_and_cgf(self, phi, mask=True):
     """
     Compute the moments and :math:`g(\phi)`.
     """
     logp0 = phi[0]
     logP = phi[1]
     (z0, zz, cgf) = random.alpha_beta_recursion(logp0, logP)
     u = [z0, zz]
     return (u, cgf)
Beispiel #2
0
 def compute_moments_and_cgf(self, phi, mask=True):
     """
     Compute the moments and :math:`g(\phi)`.
     """
     logp0 = phi[0]
     logP = phi[1]
     (z0, zz, cgf) = random.alpha_beta_recursion(logp0, logP)
     u = [z0, zz]
     return (u, cgf)
 def compute_moments_and_cgf(self, phi, mask=True):
     logp0 = phi[0]
     logP = phi[1]
     (z0, zz, cgf) = random.alpha_beta_recursion(logp0, logP)
     u = [z0, zz]
     return (u, cgf)
Beispiel #4
0
 def compute_moments_and_cgf(self, phi, mask=True):
     logp0 = phi[0]
     logP = phi[1]
     (z0, zz, cgf) = random.alpha_beta_recursion(logp0, logP)
     u = [z0, zz]
     return (u, cgf)