Fig. (2) Illustration for weights learning algorithm.