pyhgf.updates.prediction_error.dirichlet.clusters_likelihood#

pyhgf.updates.prediction_error.dirichlet.clusters_likelihood(value: float, expected_mean: Array | ndarray | bool_ | number | bool | int | float | complex, expected_sigma: Array | ndarray | bool_ | number | bool | int | float | complex) Array | ndarray | bool_ | number | bool | int | float | complex[source]#

Likelihood of a parametrized candidate under the new observation.

Parameters:
value

The new observation.

expected_mean

Pre-existing clusters means.

expected_sigma

Pre-existing clusters standard deviation.

Returns:
likelihood

The probability of observing the value under each cluster.