View Javadoc
1   package net.bmahe.genetics4j.moo;
2   
3   /**
4    * Provide a method to compute distances between to fitness scores along one objective
5    *
6    * @param <T>
7    */
8   @FunctionalInterface
9   public interface ObjectiveDistance<T> {
10  
11  	/**
12  	 * Compute the distance between two fitness scores along one objective
13  	 * 
14  	 * @param a         First fitness score
15  	 * @param b         Second fitness score
16  	 * @param objective Objective along with the distance shall be computed
17  	 * @return distance
18  	 */
19  	double distance(T a, T b, int objective);
20  }