Changeset 115 for trunk/EventBenchCore


Ignore:
Timestamp:
07/12/11 16:28:17 (13 years ago)
Author:
sherbold
Message:
  • fixed comment
File:
1 edited

Legend:

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

    r109 r115  
    1212 * Implements Prediction by Partial Match (PPM) based on the following formula 
    1313 * (LaTeX-style notation):<br> 
    14  * P_{PPM}(X_n|X_{n-1},...,X_{n-k}) = \sum_{i=k}^1 escape^{i-1} 
    15  * P_{MM^i}(X_n|X_{n-1},...,X_{n-i})(1-escape)<br> 
     14 * P_{PPM}(X_n|X_{n-1},...,X_{n-k}) = \sum_{i=k}^min escape^{k-i} P_{MM^i}(X_n 
     15 * |X_{n-1},...,X_{n-i})(1-escape)+escape^(k-min)P(X_n|X_{n-i},... ,X_{n-min})<br> 
    1616 * P_{MM^i} denotes the probability in an i-th order Markov model. 
    1717 * </p> 
     
    161161                        resultCurrentContex = (double) countSymbol / sumCountFollowers; 
    162162                } 
    163                 if (contextCopy.size() != minOrder) { 
     163                if (contextCopy.size() >= minOrder) { 
    164164                        resultCurrentContex *= (1 - probEscape); 
    165165                        contextCopy.remove(0); 
Note: See TracChangeset for help on using the changeset viewer.