ANFIS: The basic util functions.