estimator.SDis.bounds

static SDis.bounds(secret_distribution)[source]

Return bounds of secret distribution

Parameters:secret_distribution – distribution of secret, see module level documentation for details

EXAMPLES:

sage: from estimator import SDis
sage: SDis.bounds(False)
Traceback (most recent call last):
...
ValueError: Cannot extract bounds for secret.

sage: SDis.bounds(True)
Traceback (most recent call last):
...
ValueError: Cannot extract bounds for secret.

sage: SDis.bounds(((-1, 1), 64))
(-1, 1)

sage: SDis.bounds(((-3, 3), 64))
(-3, 3)

sage: SDis.bounds((-3, 3))
(-3, 3)