public class RulePrunerFactory extends Object
| Constructor and Description |
|---|
RulePrunerFactory() |
| Modifier and Type | Method and Description |
|---|---|
static double |
computeCover(boolean[] cover)
Compute the covered percentage.
|
static Integer |
computeGrammarSize(GrammarRules rules,
Integer paaSize)
Computes the size of a normal, i.e.
|
static boolean |
hasEmptyRanges(boolean[] range)
Searches for empty (i.e.
|
static boolean |
isCovered(boolean[] range)
Checks if the range is completely covered.
|
static GrammarRules |
performPruning(double[] ts,
GrammarRules grammarRules)
Performs pruning.
|
static boolean[] |
updateRanges(boolean[] range,
GrammarRules grammar)
Updating the coverage ranges.
|
static boolean[] |
updateRanges(boolean[] range,
List<RuleInterval> ruleIntervals)
Updating the coverage ranges.
|
public static Integer computeGrammarSize(GrammarRules rules, Integer paaSize)
rules - the grammar rules.paaSize - the SAX transform word size.public static GrammarRules performPruning(double[] ts, GrammarRules grammarRules)
ts - the input time series.grammarRules - the grammar.public static boolean[] updateRanges(boolean[] range,
List<RuleInterval> ruleIntervals)
range - the global range array.ruleIntervals - The intervals used for this update.public static boolean[] updateRanges(boolean[] range,
GrammarRules grammar)
range - the global range array.grammar - The grammar (i.e. set of rules) used for this update.public static double computeCover(boolean[] cover)
cover - the cover array.public static boolean isCovered(boolean[] range)
range - the range.public static boolean hasEmptyRanges(boolean[] range)
range - the whole range to analyze.Copyright © 2021 JMotif. All rights reserved.