Theoretical foundations of the potential function method in pattern recognition learning