Package | Description |
---|---|
metdetection | |
metdetection.meter.lpcfg |
Modifier and Type | Method and Description |
---|---|
private static void |
Main.addToGrammar(MetricalLpcfg grammar,
MetricalLpcfgGenerator toAdd)
Add the grammar rules from the given generator to the given grammar.
|
private static void |
Main.extractFromGrammar(MetricalLpcfg grammar,
MetricalLpcfgGenerator toExtract)
Extract the grammar rules from the given generator from the given grammar.
|
private static void |
Main.testGrammar(java.io.File testFile,
java.util.List<java.io.File> anacrusisFiles,
boolean useChannel,
MetricalLpcfg grammar,
MetricalLpcfgGenerator correctGrammarGenerator)
Test the given Runner with the given generated grammar.
|
Modifier and Type | Field and Description |
---|---|
private MetricalLpcfg |
MetricalLpcfgMetricalModelState.grammar
The grammar object we will use for probabilities.
|
private MetricalLpcfg |
MetricalLpcfgGenerator.grammar
The grammar which we are building.
|
private MetricalLpcfg |
MetricalLpcfgMetricalModelState.localGrammar
The local grammar for this hierarchy model state.
|
Modifier and Type | Method and Description |
---|---|
MetricalLpcfg |
MetricalLpcfg.deepCopy()
Get a deep copy of this grammar.
|
static MetricalLpcfg |
MetricalLpcfg.deserialize(java.io.File serialized)
Load a grammar from a serialized file.
|
MetricalLpcfg |
MetricalLpcfgGenerator.getGrammar()
Get the MetricalGrammar we have generated.
|
MetricalLpcfg |
MetricalLpcfgMetricalModelState.getLocalGrammar()
Get the local grammar of this model.
|
Modifier and Type | Method and Description |
---|---|
static void |
MetricalLpcfg.serialize(MetricalLpcfg grammar,
java.io.File file)
Serialize the given grammar and write it out to the given file.
|
Constructor and Description |
---|
MetricalLpcfg(MetricalLpcfg lpcfg)
Create a new grammar, used by the
deepCopy() method. |
MetricalLpcfgMetricalModelState(MetricalLpcfg grammar)
Create a new state based on the given grammar.
|
MetricalLpcfgMetricalModelState(MetricalLpcfgMetricalModelState state,
MetricalLpcfg grammar,
Measure measure,
int terminalLength,
int anacrusisLength)
Create a new state based on the given grammar, measure, and terminal length, and as a partial
deep copy of the given state.
|