Changeset 1619 for branches/ralph/src
- Timestamp:
- 07/20/14 20:43:00 (10 years ago)
- Location:
- branches/ralph/src/main/java/de/ugoe/cs/autoquest/tasktrees
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ralph/src/main/java/de/ugoe/cs/autoquest/tasktrees/alignment/algorithms/NumberSequence.java
r1618 r1619 62 62 if (sequence[i + j] != pat1[j] 63 63 && sequence[i + j] != pat2[j]) { 64 i++; 64 65 continue notmatched; 65 66 } -
branches/ralph/src/main/java/de/ugoe/cs/autoquest/tasktrees/alignment/algorithms/SmithWatermanRepeated.java
r1618 r1619 4 4 import java.util.Iterator; 5 5 import java.util.LinkedList; 6 import java.util.logging.Level; 6 7 7 8 8 import de.ugoe.cs.autoquest.tasktrees.alignment.matrix.SubstitutionMatrix; 9 9 import de.ugoe.cs.autoquest.tasktrees.alignment.algorithms.Constants; 10 import de.ugoe.cs.util.console.Console; 10 11 11 12 12 public class SmithWatermanRepeated implements AlignmentAlgorithm { -
branches/ralph/src/main/java/de/ugoe/cs/autoquest/tasktrees/temporalrelation/SequenceForTaskDetectionRuleAlignment.java
r1618 r1619 164 164 Console.traceln(Level.INFO,"retrieving significant sequence pieces"); 165 165 for (int i=0; i< numberseqs.size();i++) { 166 Console.traceln(Level.FINEST,"retrieving significant sequence pieces: " + Math.round((float)i/(float)numberseqs.size()*100) + "%"); 166 167 for(int j=0; j< numberseqs.size();j++) { 167 168 if(i != j) { … … 171 172 } 172 173 } 174 Console.traceln(Level.FINEST,"retrieving significant sequence pieces: 100%"); 173 175 174 176 Console.traceln(Level.INFO, "searching for patterns occuring most"); 177 175 178 //search this match in every other sequence 176 179 for(int i=0; i < matchseqs.size();i++) { 180 int occurencecount = 0; 181 Console.traceln(Level.FINEST, "searching for patterns occuring most: " + Math.round((float)i/(float)matchseqs.size()*100) + "%"); 177 182 for(int j=0; j < matchseqs.size();j++) { 178 183 if(i>j) { 179 184 if(matchseqs.get(j).get(0).containsPattern(matchseqs.get(i)) > 0 || matchseqs.get(j).get(1).containsPattern(matchseqs.get(i)) > 0) { 180 System.out.println("Found something!");185 occurencecount++; 181 186 } 182 187 } 183 188 } 184 189 if(occurencecount > 1) { 190 System.out.println("Found pattern \n "); 191 matchseqs.get(i).get(0).printSequence(); 192 matchseqs.get(i).get(1).printSequence(); 193 System.out.println(occurencecount + " times"); 194 System.out.println(); 195 } 185 196 } 186 197
Note: See TracChangeset
for help on using the changeset viewer.