computeDistance
public MatriuDistancies computeDistance(Population test,
Population train,
java.lang.String classe)
Abstract method to computeDistance the global computeDistance between two populations.
This method is to be implemented by subclasses in the appropriate way.
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 of test.train
- Population of case base.classe
- String with the attribute id of the value to classify.
- Returns:
- MatriuDistancies with the distances between the population individuals.