Package pal.eval

Interface LHCalculator.Generator

All Superinterfaces:
Serializable
Enclosing interface:
LHCalculator

public static interface LHCalculator.Generator extends Serializable
  • Method Details

    • createNewLeaf

      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

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

      LHCalculator.External createNewExternal()
    • createNewInternal

      LHCalculator.Internal createNewInternal()
    • isAllowCaching

      boolean isAllowCaching()
    • createNewExternal

      LHCalculator.External createNewExternal(LHCalculator.Generator parentGenerator) throws 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:
      IllegalArgumentException - Generator does not allow being a subserviant generator
    • createNewInternal

      LHCalculator.Internal createNewInternal(LHCalculator.Generator patentGenerator) throws 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:
      IllegalArgumentException - Generator does not allow being a subserviant generator
    • createAppropriateConditionalProbabilityStore

      ConditionalProbabilityStore createAppropriateConditionalProbabilityStore(boolean isForLeaf)