iblrig.misc.get_biased_probs
- iblrig.misc.get_biased_probs(n, idx=-1, p_idx=0.5)[source]
Calculate biased probabilities for all elements of an array such that the i`th value has probability `p_i for being drawn relative to the remaining values.
See: https://github.com/int-brain-lab/iblrig/issues/74
- Parameters:
- Returns:
List of biased probabilities.
- Return type:
List[float]
- Raises:
IndexError – If idx is out of range
ValueError – If p_idx is 0.
- Parameters: