Neural Learning Rules from Associative Networks Theory