pyhgf.math.binary_surprise_finite_precision#
- pyhgf.math.binary_surprise_finite_precision(value, expected_mean, expected_precision, eta0=0.0, eta1=1.0)[source]#
Compute the binary surprise with finite precision.
- Parameters:
- value
The observed value.
- expected_mean
The expected probability of observing category 1.
- expected_precision
The precision of the underlying normal distributions.
- eta0
The first possible value.
- eta1
The second possible value.
- Returns:
- surprise
The binary surprise under finite precision.
- Parameters:
value (Array | ndarray | bool | number | bool | int | float | complex)
expected_mean (Array | ndarray | bool | number | bool | int | float | complex)
expected_precision (Array | ndarray | bool | number | bool | int | float | complex)
eta0 (Array | ndarray | bool | number | bool | int | float | complex)
eta1 (Array | ndarray | bool | number | bool | int | float | complex)
- Return type:
Array