Package pal.eval

Interface LHCalculator.Generator

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

    public static interface LHCalculator.Generator
    extends java.io.Serializable
    • Method Detail

      • 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
      • isAllowCaching

        boolean isAllowCaching()
      • createNewExternal

        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

        LHCalculator.Internal createNewInternal​(LHCalculator.Generator patentGenerator)
                                         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
      • createAppropriateConditionalProbabilityStore

        ConditionalProbabilityStore createAppropriateConditionalProbabilityStore​(boolean isForLeaf)