computeDistance
public MatriuDistancies computeDistance(Population test,
Population train,
java.lang.String classe)
Computes the global computeDistance between two Populations.
Global distances is the euclidean computeDistance considering all attributes of individuals.
Returns a computeDistance matrix with the computeDistance between individuals
test[i] and train[j] in the (i,j) position.
- Specified by:
computeDistance
in class GlobalDistance
- Parameters:
test
- Population test.train
- Population case base.classe
- String with the attribute id of the value to classify.
- Returns:
- MatriuDistancies with the distances between the population individuals.