jax_privacy.matrix_factorization.sensitivity.minsep_true_max_participations
- jax_privacy.matrix_factorization.sensitivity.minsep_true_max_participations(n, min_sep, max_participations=None)[source]
Returns the maximum number of participations for a min_sep pattern.
This might be less than the max_participations limit (if it is given) because n is too small.
- Parameters:
n (
int) – The number of rounds.min_sep (
int) – The minimum separation between participations, where min_sep=1 means adjacent indices can be selected.max_participations (
Optional[int]) – The maximum number of participations.
- Return type:
int- Returns:
The largest number of participations that are actually possible based on the inputs.