Ignore:
Timestamp:
06/22/11 14:12:18 (13 years ago)
Author:
sherbold
Message:
  • added getProbability() to de.ugoe.cs.eventbench.models.IStochasticProcess and implementing classes
  • added getEvents() to de.ugoe.cs.eventbench.models.IStochasticProcess and implementing classes
  • changed getProbability() of subclasses of de.ugoe.cs.eventbench.TrieBasedModel? such that the probability is not zero if the context length is higher than the order of the model, but rather the probability of the suffix of the length of the order, i.e., for a 2nd-order model context(X1,X2,X3,X4) becomes context(X3,X4)
File:
1 edited

Legend:

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

    r70 r80  
    44import java.util.List; 
    55import java.util.Random; 
     6import java.util.Set; 
    67 
    78import de.ugoe.cs.eventbench.data.Event; 
     
    1314 
    1415        protected int trieOrder; 
    15  
    16         protected abstract double getProbability(List<Event<?>> context, Event<?> symbol); 
    1716 
    1817        protected Trie<Event<?>> trie; 
     
    9998                return stateStrings; 
    10099        } 
     100         
     101        public Set<Event<?>> getEvents() { 
     102                return trie.getKnownSymbols(); 
     103        } 
    101104 
    102105} 
Note: See TracChangeset for help on using the changeset viewer.