Changeset 15713 for branches/1614_GeneralizedQAP/HeuristicLab.Analysis.FitnessLandscape/3.3/ProblemCharacteristicAnalysis/IntegerVectorPathAnalysis.cs
- Timestamp:
- 02/02/18 16:31:42 (5 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
branches/1614_GeneralizedQAP/HeuristicLab.Analysis.FitnessLandscape/3.3/ProblemCharacteristicAnalysis/IntegerVectorPathAnalysis.cs
r15702 r15713 1 1 using System; 2 2 using System.Collections.Generic; 3 using HeuristicLab.Encodings. PermutationEncoding;3 using HeuristicLab.Encodings.IntegerVectorEncoding; 4 4 5 5 namespace HeuristicLab.Analysis.FitnessLandscape { 6 public static class PermutationPathAnalysis {7 public static CurveAnalysisResult GetCharacteristics(List<List<Tuple< Permutation, double>>> trajectories) {8 return CurveAnalysis< Permutation>.GetCharacteristics(trajectories, Dist);6 public static class IntegerVectorPathAnalysis { 7 public static CurveAnalysisResult GetCharacteristics(List<List<Tuple<IntegerVector, double>>> trajectories) { 8 return CurveAnalysis<IntegerVector>.GetCharacteristics(trajectories, Dist); 9 9 } 10 10 11 private static double Dist( Permutation a, Permutationb) {11 private static double Dist(IntegerVector a, IntegerVector b) { 12 12 var dist = 0; 13 13 for (var i = 0; i < a.Length; i++)
Note: See TracChangeset
for help on using the changeset viewer.