Changeset 374 for trunk/EventBenchCore


Ignore:
Timestamp:
01/31/12 11:54:10 (13 years ago)
Author:
sherbold
Message:
  • modified de.ugoe.cs.eventbench.models.FirstOrderMarkovModel?.getDotRepresentation() such that it creates correct dot files in case of equal has values
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/EventBenchCore/src/de/ugoe/cs/eventbench/models/FirstOrderMarkovModel.java

    r345 r374  
    178178                        final String thisSaneId = symbol.getShortId().replace("\"", "\\\"") 
    179179                                        .replaceAll("[\r\n]", ""); 
    180                         stringBuilder.append(" " + symbol.hashCode() + " [label=\"" 
     180                        stringBuilder.append(" " + knownSymbols.indexOf(symbol) + " [label=\"" 
    181181                                        + thisSaneId + "\"];" + StringTools.ENDLINE); 
    182182                        List<Event<?>> context = new ArrayList<Event<?>>(); 
     
    184184                        Collection<Event<?>> followers = trie.getFollowingSymbols(context); 
    185185                        for (Event<?> follower : followers) { 
    186                                 stringBuilder.append(" " + symbol.hashCode() + " -> " 
    187                                                 + follower.hashCode() + " "); 
     186                                stringBuilder.append(" " + knownSymbols.indexOf(symbol) + " -> " 
     187                                                + knownSymbols.indexOf(follower) + " "); 
    188188                                stringBuilder.append("[label=\"" 
    189189                                                + getProbability(context, follower) + "\"];" 
Note: See TracChangeset for help on using the changeset viewer.