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/TriangleMatrix.java

    r1558 r1568  
    33public class TriangleMatrix { 
    44         
    5         private float[] matrix; 
     5        private double[] matrix; 
    66        private int size; 
    77         
    88        public TriangleMatrix(int size) { 
    99                this.size = size; 
    10                 matrix = new float [size*(size+1)/2]; 
     10                matrix = new double [size*(size+1)/2]; 
    1111        } 
    1212         
    13         public float get(int first, int second) { 
     13        public double get(int first, int second) { 
    1414                int row = Math.min(first, second); 
    1515                int col = Math.max(first, second); 
     
    1818        } 
    1919         
    20         public void set(int first, int second, float value) { 
     20        public void set(int first, int second, double value) { 
    2121                int row = Math.min(first, second); 
    2222                int col = Math.max(first, second); 
Note: See TracChangeset for help on using the changeset viewer.