DeltaProdLik

class glimix_core.lik.DeltaProdLik(link=None)[source]

Product of Kronecker delta likelihoods.

The product can be written as

\[\prod_i \delta[y_i = x_i]\]
Parameters

link (link_func) – Link function establishing \(g(y_i) = x_i\). Defaults to None, which leads to the identity link function.

__init__(link=None)[source]

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__([link])

Initialize self.

mean(x)

Outcome mean.

sample(x, *_)

Attributes

name

Get the name of this likelihood.

outcome

Get or set an array of outcomes.

sample_size

Get the number of samples.