estimator.SDis.is_sparse

static SDis.is_sparse(secret_distribution)[source]

Return true if the secret distribution is sparse

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

EXAMPLES:

sage: from estimator import SDis
sage: SDis.is_sparse(True)
False

sage: SDis.is_sparse(((-1, 1), 64))
True

sage: SDis.is_sparse(((-3, 3), 64))
True

sage: SDis.is_sparse((-3, 3))
False