(4)where Na,x is the number of times attribute a had value x; Na,x,c is the number of times attribute a had value x
and the output class was c; and C is the number of output classes. Using this distance measure, two values are
considered to be closer if they have more similar classifications, regardless of the order of the values.