Ignore:
Timestamp:
06/18/14 08:59:41 (10 years ago)
Author:
rkrimmel
Message:

Building distance matrix between sequences

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/ralph/src/main/java/de/ugoe/cs/autoquest/tasktrees/alignment/substitution/ObjectDistanceSubstitionMatrix.java

    r1559 r1568  
    2626        private TriangleMatrix matrix; 
    2727        private SymbolMap<ITaskInstance, ITask> uniqueTasks; 
    28         private float gapPenalty;  
    29         private float positiveThreshold; 
     28        private double gapPenalty;  
     29        private double positiveThreshold; 
    3030         
    3131        public ObjectDistanceSubstitionMatrix( 
     
    4040 
    4141        @Override 
    42         public float getGapPenalty() { 
     42        public double getGapPenalty() { 
    4343                return gapPenalty; 
    4444        } 
     
    4848                int index = 0; 
    4949                //TODO We need to determine this parameter before generating the matrix.. 
    50                 float meandistance = 18; 
     50                //float meandistance = 18; 
    5151                //TODO We need to determine this parameter before generating the matrix.. 
    5252                float maxDistance =34; 
     
    5858                                eti1 = (IEventTaskInstance) obj1; 
    5959                        } 
     60                        //System.out.println(eti1.getTask().toString()); 
    6061                 
    6162                        for (Iterator<ITaskInstance> jt = uniqueTasks.getSymbols() 
     
    121122 
    122123        @Override 
    123         public float getDistance(int taskId1, int taskId2) { 
     124        public double getDistance(int taskId1, int taskId2) { 
    124125                //System.out.println("Taskid1: " + taskId1 + " Taskid2: " + taskId2 + " Idmapping1: " + idmapping.get(taskId1) + " Idmapping2: " + idmapping.get(taskId2)); 
    125126                return matrix.get(idmapping.get(taskId1),idmapping.get(taskId2)); 
Note: See TracChangeset for help on using the changeset viewer.