pal.eval
public static interface LHCalculator.Generator extends java.io.Serializable
Modifier and Type | Method and Description |
---|---|
ConditionalProbabilityStore |
createAppropriateConditionalProbabilityStore(boolean isForLeaf) |
LHCalculator.External |
createNewExternal() |
LHCalculator.External |
createNewExternal(LHCalculator.Generator parentGenerator)
An obscure method, primarily used by the High Accuracy calculator
|
LHCalculator.Internal |
createNewInternal() |
LHCalculator.Internal |
createNewInternal(LHCalculator.Generator patentGenerator)
An obscure method, primarily used by the High Accuracy calculator
|
LHCalculator.Leaf |
createNewLeaf(int[] patternStateMatchup,
int numberOfPatterns)
Create anew leaf calculator
|
LHCalculator.Leaf |
createNewLeaf(int[] patternStateMatchup,
int numberOfPatterns,
LHCalculator.Generator parentGenerator) |
boolean |
isAllowCaching() |
LHCalculator.Leaf createNewLeaf(int[] patternStateMatchup, int numberOfPatterns)
patternStateMatchup
- The sequence as reduced to patterns. This should just be one state per pattern.
For example given a sequence [ 0, 1,0,1,3,0] a patternMatchup may be [0,1,3] (the first element is the first
pattern, which is state 0, the second element is the second pattern which is 1, and the third element is the
third pattern (novel pattern) which is state 3)numberOfPatterns
- The number of patterns in the patternStateMatchup arrayLHCalculator.Leaf createNewLeaf(int[] patternStateMatchup, int numberOfPatterns, LHCalculator.Generator parentGenerator)
LHCalculator.External createNewExternal()
LHCalculator.Internal createNewInternal()
boolean isAllowCaching()
LHCalculator.External createNewExternal(LHCalculator.Generator parentGenerator) throws java.lang.IllegalArgumentException
parentGenerator
- A reference to an encompasing generator (that may for example
wish to impose it's own choice on the creation of ConditionalProbabilityStores)java.lang.IllegalArgumentException
- Generator does not allow being a subserviant generatorLHCalculator.Internal createNewInternal(LHCalculator.Generator patentGenerator) throws java.lang.IllegalArgumentException
parentGenerator
- A reference to an encompasing generator (that may for example
wish to impose it's own choice on the creation of ConditionalProbabilityStores)java.lang.IllegalArgumentException
- Generator does not allow being a subserviant generatorConditionalProbabilityStore createAppropriateConditionalProbabilityStore(boolean isForLeaf)