pal.eval
Interface LHCalculator.Generator

All Superinterfaces:
java.io.Serializable
Enclosing interface:
LHCalculator

public static interface LHCalculator.Generator
extends java.io.Serializable


Method Summary
 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()
           
 

Method Detail

createNewLeaf

public LHCalculator.Leaf createNewLeaf(int[] patternStateMatchup,
                                       int numberOfPatterns)
Create anew leaf calculator

Parameters:
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 array
Returns:
a leaf calculator object

createNewLeaf

public LHCalculator.Leaf createNewLeaf(int[] patternStateMatchup,
                                       int numberOfPatterns,
                                       LHCalculator.Generator parentGenerator)

createNewExternal

public LHCalculator.External createNewExternal()

createNewInternal

public LHCalculator.Internal createNewInternal()

isAllowCaching

public boolean isAllowCaching()

createNewExternal

public LHCalculator.External createNewExternal(LHCalculator.Generator parentGenerator)
                                        throws java.lang.IllegalArgumentException
An obscure method, primarily used by the High Accuracy calculator

Parameters:
parentGenerator - A reference to an encompasing generator (that may for example wish to impose it's own choice on the creation of ConditionalProbabilityStores)
Returns:
Throws:
java.lang.IllegalArgumentException - Generator does not allow being a subserviant generator

createNewInternal

public LHCalculator.Internal createNewInternal(LHCalculator.Generator patentGenerator)
                                        throws java.lang.IllegalArgumentException
An obscure method, primarily used by the High Accuracy calculator

Returns:
Throws:
java.lang.IllegalArgumentException - Generator does not allow being a subserviant generator

createAppropriateConditionalProbabilityStore

public ConditionalProbabilityStore createAppropriateConditionalProbabilityStore(boolean isForLeaf)