estimator.SDis

class estimator.SDis[source]

Distributions of Secrets.

Methods

bounds(secret_distribution) Return bounds of secret distribution
is_bounded_uniform(secret_distribution) Return true if the secret is bounded uniform (sparse or not).
is_small(secret_distribution) Return true if the secret distribution is small
is_sparse(secret_distribution) Return true if the secret distribution is sparse
is_ternary(secret_distribution) Return true if the secret is ternary (sparse or not)
mean(secret_distribution[, q, n]) Mean of the secret per component.
nonzero(secret_distribution, n) Return number of non-zero elements or None
variance(secret_distribution[, alpha, q, n]) Variance of the secret per component.