pyhgf.updates.prediction_error.dirichlet.clusters_likelihood#
- pyhgf.updates.prediction_error.dirichlet.clusters_likelihood(value, expected_mean, expected_sigma)[source]#
Likelihood of a parametrized candidate under the new observation.
- Parameters:
value (float) – The new observation.
expected_mean (Array | ndarray | bool | number | bool | int | float | complex) – Pre-existing clusters means.
expected_sigma (Array | ndarray | bool | number | bool | int | float | complex) – Pre-existing clusters standard deviation.
- Returns:
The probability of observing the value under each cluster.
- Return type:
likelihood