Auxiliary function used to calculate the distances between an instance and the ones with a specific active label. Euclidean distance is calculated for numeric attributes, and VDM for non numeric ones.
calculateDistances(sample, rest, label, D, tableVDM = NULL)
A list with the distance to the rest of samples
Index of the sample whose distances to other samples we want to know
Indexes of the samples to which we will calculate the distance
Label that must be active
mld mldr
object with the multilabel dataset to preprocess
Dataframe object containing previous calculations for faster processing. If it is empty, the algorithm will be slower