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_participationslimit (if it is given) becausenis too small.- Parameters:
n (
int) – The number of rounds.min_sep (
int) – The minimum separation between participations, wheremin_sep=1means adjacent indices can be selected.max_participations (
int|None) – The maximum number of participations.
- Return type:
int- Returns:
The largest number of participations that are actually possible based on the inputs.