Changeset 115 for trunk/EventBenchCore
- Timestamp:
- 07/12/11 16:28:17 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/EventBenchCore/src/de/ugoe/cs/eventbench/models/PredictionByPartialMatch.java
r109 r115 12 12 * Implements Prediction by Partial Match (PPM) based on the following formula 13 13 * (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> 16 16 * P_{MM^i} denotes the probability in an i-th order Markov model. 17 17 * </p> … … 161 161 resultCurrentContex = (double) countSymbol / sumCountFollowers; 162 162 } 163 if (contextCopy.size() != minOrder) {163 if (contextCopy.size() >= minOrder) { 164 164 resultCurrentContex *= (1 - probEscape); 165 165 contextCopy.remove(0);
Note: See TracChangeset
for help on using the changeset viewer.