1. A computerized method for identifying a Boolean function as either a threshold function or a non-threshold function comprising: determining whether the Boolean function satisfies one or more predefined conditions for being a threshold function, the one or more predefined threshold conditions comprising a condition that both a positive cofactor and a negative cofactor of the Boolean function are threshold functions; if the one or more predefined conditions for being a threshold function are satisfied, determining whether weights for the positive cofactor are equal to weights for the negative cofactor, the weights for the positive cofactor being weights that together with a threshold value for the positive cofactor define a threshold function that corresponds to the positive cofactor and the weights for the negative cofactor being weights that together with a threshold value for the negative cofactor define a threshold function that corresponds to the negative cofactor; and if the weights for the positive cofactor and the weights for the negative cofactor are equal, identifying the Boolean function as a threshold function.