Linearly separable switching functions