estimator.SDis.mean

static SDis.mean(secret_distribution, q=None, n=None)[source]

Mean of the secret per component.

Parameters:
  • secret_distribution – distribution of secret, see module level documentation for details
  • n – only used for sparse secrets

EXAMPLE:

sage: from estimator import SDis
sage: SDis.mean(True)
0

sage: SDis.mean(False, q=10)
0

sage: SDis.mean(((-3,3)))
0

sage: SDis.mean(((-3,3),64), n=256)
0

sage: SDis.mean(((-3,2)))
-1/2

sage: SDis.mean(((-3,2),64), n=256)
-3/20