Jeffries-Matusita distance.
JMdist(g, X)A column vector of the lables. length(g) is equal to nrow(X).
A dataframe of the features. ncol(X) is equal to the total number of features, and nrow(X) is equal to the number of avaialble training samples. nrow(X) is equal to length(g)
A list containing a matrix of the class combinations and a vector of the JM distances of all the class combinations.
Dalponte, M., Oerka, H.O., Gobakken, T., Gianelle, D. & Naesset, E. (2013). Tree Species Classification in Boreal Forests With Hyperspectral Data. IEEE Transactions on Geoscience and Remote Sensing, 51, 2632-2645.