- Timestamp:
- 01/31/12 11:54:10 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/EventBenchCore/src/de/ugoe/cs/eventbench/models/FirstOrderMarkovModel.java
r345 r374 178 178 final String thisSaneId = symbol.getShortId().replace("\"", "\\\"") 179 179 .replaceAll("[\r\n]", ""); 180 stringBuilder.append(" " + symbol.hashCode() + " [label=\""180 stringBuilder.append(" " + knownSymbols.indexOf(symbol) + " [label=\"" 181 181 + thisSaneId + "\"];" + StringTools.ENDLINE); 182 182 List<Event<?>> context = new ArrayList<Event<?>>(); … … 184 184 Collection<Event<?>> followers = trie.getFollowingSymbols(context); 185 185 for (Event<?> follower : followers) { 186 stringBuilder.append(" " + symbol.hashCode() + " -> "187 + follower.hashCode() + " ");186 stringBuilder.append(" " + knownSymbols.indexOf(symbol) + " -> " 187 + knownSymbols.indexOf(follower) + " "); 188 188 stringBuilder.append("[label=\"" 189 189 + getProbability(context, follower) + "\"];"
Note: See TracChangeset
for help on using the changeset viewer.