Changeset 86 for trunk/EventBenchCore/src/de/ugoe/cs/eventbench/models
- Timestamp:
- 06/23/11 14:02:05 (13 years ago)
- Location:
- trunk/EventBenchCore/src/de/ugoe/cs/eventbench/models
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/EventBenchCore/src/de/ugoe/cs/eventbench/models/FirstOrderMarkovModel.java
r29 r86 16 16 public class FirstOrderMarkovModel extends HighOrderMarkovModel implements IDotCompatible { 17 17 18 /** 19 * Id for object serialization. 20 */ 21 private static final long serialVersionUID = 1L; 22 18 23 final static int MAX_STATDIST_ITERATIONS = 1000; 19 24 -
trunk/EventBenchCore/src/de/ugoe/cs/eventbench/models/HighOrderMarkovModel.java
r80 r86 9 9 public class HighOrderMarkovModel extends TrieBasedModel { 10 10 11 /** 12 * Id for object serialization. 13 */ 14 private static final long serialVersionUID = 1L; 15 11 16 public HighOrderMarkovModel(int maxOrder, Random r) { 12 17 super(maxOrder, r); -
trunk/EventBenchCore/src/de/ugoe/cs/eventbench/models/IStochasticProcess.java
r80 r86 1 1 package de.ugoe.cs.eventbench.models; 2 2 3 import java.io.Serializable; 3 4 import java.util.List; 4 5 import java.util.Set; … … 6 7 import de.ugoe.cs.eventbench.data.Event; 7 8 8 public interface IStochasticProcess {9 public interface IStochasticProcess extends Serializable { 9 10 10 11 double getProbability(List<Event<?>> context, Event<?> symbol); -
trunk/EventBenchCore/src/de/ugoe/cs/eventbench/models/PredictionByPartialMatch.java
r80 r86 8 8 9 9 public class PredictionByPartialMatch extends TrieBasedModel { 10 11 /** 12 * Id for object serialization. 13 */ 14 private static final long serialVersionUID = 1L; 10 15 11 16 double probEscape; -
trunk/EventBenchCore/src/de/ugoe/cs/eventbench/models/Trie.java
r66 r86 1 1 package de.ugoe.cs.eventbench.models; 2 2 3 import java.io.Serializable; 3 4 import java.util.LinkedHashSet; 4 5 import java.util.LinkedList; … … 11 12 import edu.uci.ics.jung.graph.Tree; 12 13 13 public class Trie<T> implements IDotCompatible {14 public class Trie<T> implements IDotCompatible, Serializable { 14 15 16 /** 17 * Id for object serialization. 18 */ 19 private static final long serialVersionUID = 1L; 20 15 21 private Set<T> knownSymbols; 16 22 -
trunk/EventBenchCore/src/de/ugoe/cs/eventbench/models/TrieBasedModel.java
r80 r86 12 12 13 13 public abstract class TrieBasedModel implements IStochasticProcess { 14 15 /** 16 * Id for object serialization. 17 */ 18 private static final long serialVersionUID = 1L; 14 19 15 20 protected int trieOrder; -
trunk/EventBenchCore/src/de/ugoe/cs/eventbench/models/TrieNode.java
r30 r86 1 1 package de.ugoe.cs.eventbench.models; 2 2 3 import java.io.Serializable; 3 4 import java.security.InvalidParameterException; 4 5 import java.util.LinkedList; … … 11 12 12 13 13 class TrieNode<T> { 14 class TrieNode<T> implements Serializable { 15 16 /** 17 * Id for object serialization. 18 */ 19 private static final long serialVersionUID = 1L; 14 20 15 21 private int count;
Note: See TracChangeset
for help on using the changeset viewer.