We have 2 lists of 10 values each one, as you can see an example here: Index list: [0, 5, 5, 6, 0, 1, 1, 8, 9, 9] Index list Mfccs : [0.640495, 0.4822588, 0.6523488, 0.74474275, 0.5423001, 0.85711163, 0.724612, 0.5099624, 0.9696293, 0.97258127]
The lists correspond to each other, "Index list Mfccs" has the real values and the "Index list" contains the arguments of these values.
We want to extract the most recurrent argument in "Index list". But sometimes we can have two or more duplications, triplets... as in the example. In the case of the example we have four duplications (0, 5, 1 and 9) and want to extract and compare the corresponding values in "Index list Mfccs" like this: (0.640495, 0.4822588, 0.6523488, 0.5423001, 0.85711163, 0.724612, 0.9696293, 0.97258127) in order to choose the biggest one, here 0.97258127.
Note: For example, if there is a tripled argument and 2 duplicates, the choosen value will be the max of the three values of the tripled argument. Same if there is a quadrupled or quintupled argument. So, higher the rodundance higher the priority.