boofun.analysis.symmetry

Symmetry helpers informed by Krawchouk polynomials.

Functions

degree_sym(f)

Symmetric degree: largest weight with nonzero count.

sens_sym(f)

Crude symmetric sensitivity proxy (mean weight of true inputs).

symmetrize(f)

Return counts of true outputs grouped by Hamming weight.

boofun.analysis.symmetry.symmetrize(f: BooleanFunction) ndarray[source]

Return counts of true outputs grouped by Hamming weight.

boofun.analysis.symmetry.degree_sym(f: BooleanFunction) int[source]

Symmetric degree: largest weight with nonzero count.

boofun.analysis.symmetry.sens_sym(f: BooleanFunction) float[source]

Crude symmetric sensitivity proxy (mean weight of true inputs).