SP+WiSARD functions