I'm looking for a measure/score for the following case:
I have a 1D vector of size s. The vector has values (probabilities) in several places, whilst most of the vector is zeros. I need some kind of score/measure that takes into account the distances between the non-zero values, for example: s = 16, vec1 = [0.2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.44]; vec2 = [0 0 0 0 0 0.2 0.44 0 0 0 0 0 0 0 0 0]; I want vec1 "score" to take into account that these probabilities are far, other then in vec2. In the next step, I would also like to consider the probability itself in this score, i.e. if non-zero values are very far but very similar the measure should give a lower result than if they were very different.
Thank you,