public class RePairGrammar extends Object
| Modifier and Type | Field and Description |
|---|---|
protected AtomicInteger |
numRules |
protected String |
r0ExpandedString |
protected String |
r0String |
protected Hashtable<Integer,RePairRule> |
theRules |
| Constructor and Description |
|---|
RePairGrammar()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
buildIntervals(net.seninp.jmotif.sax.datastructure.SAXRecords records,
double[] originalTimeSeries,
int slidingWindowSize)
Builds a table of intervals corresponding to the grammar rules.
|
void |
expandRules()
Global method: iterates over all rules expanding them.
|
String |
getR0CompressedString() |
Hashtable<Integer,RePairRule> |
getRules()
Get all the rules as the map.
|
void |
setR0ExpnadedString(String str) |
void |
setR0String(String str) |
String |
toGrammarRules()
Prints out the grammar as text.
|
GrammarRules |
toGrammarRulesData()
Build a grammarviz-"portable" grammar object.
|
protected AtomicInteger numRules
protected Hashtable<Integer,RePairRule> theRules
protected String r0String
protected String r0ExpandedString
public void setR0String(String str)
public String getR0CompressedString()
public void setR0ExpnadedString(String str)
public Hashtable<Integer,RePairRule> getRules()
public void expandRules()
public String toGrammarRules()
public GrammarRules toGrammarRulesData()
public void buildIntervals(net.seninp.jmotif.sax.datastructure.SAXRecords records,
double[] originalTimeSeries,
int slidingWindowSize)
records - the records to build intervals for.originalTimeSeries - the timeseries.slidingWindowSize - the sliding window size.Copyright © 2021 JMotif. All rights reserved.