Changeset 1733 for branches/autoquest-core-tasktrees-alignment/src/main/java/de/ugoe/cs/autoquest/tasktrees/alignment/matrix/UPGMAMatrix.java
- Timestamp:
- 09/05/14 19:33:12 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/autoquest-core-tasktrees-alignment/src/main/java/de/ugoe/cs/autoquest/tasktrees/alignment/matrix/UPGMAMatrix.java
r1702 r1733 1 1 package de.ugoe.cs.autoquest.tasktrees.alignment.matrix; 2 3 4 2 5 3 public class UPGMAMatrix extends StaticTriangleMatrix { … … 9 7 } 10 8 9 @Override 11 10 public int size() { 12 11 return size; 13 12 } 14 13 14 @Override 15 15 public String toString() { 16 16 String result = ""; … … 19 19 } 20 20 result += "\n"; 21 21 22 22 for (int i = 0; i < size; i++) { 23 for (int j = 0; j< size; j++) {24 if (i<j) {25 if (Double.isInfinite(this.get(i,j))) {23 for (int j = 0; j < size; j++) { 24 if (i < j) { 25 if (Double.isInfinite(this.get(i, j))) { 26 26 result = result + " -------"; 27 } else { 28 result = result 29 + String.format("%+8.2f", this.get(i, j)); 27 30 } 28 else { 29 result = result + String.format("%+8.2f",this.get(i,j)); 30 } 31 } 32 else { 31 } else { 33 32 result = result + (" "); 34 33 } … … 39 38 } 40 39 41 42 43 40 }
Note: See TracChangeset
for help on using the changeset viewer.