Competitive Learning is usually implemented with Neural Networks that contain a hidden layer which is commonly known as "competitive layer" [REF].
Usually, in order to measure similarity the inverse of the Euclidean distance is used: \left\| - {\mathbf{w}}_i } \right\| between the input vector {\mathbf{x}}^n and the weight vector {\mathbf{w}}_i.