Class LoopyBeliefQueryOutput

    • Constructor Detail

      • LoopyBeliefQueryOutput

        public LoopyBeliefQueryOutput()
        Initializes a new instance of the LoopyBeliefQueryOutput class.
    • Method Detail

      • getIterations

        public int getIterations()
        Gets the number of iterations performed.
      • getLogLikelihood

        public Double getLogLikelihood()
        Gets the log-likelihood value. On return from a query the value will be null unless QueryOptions.getLogLikelihood() is set to true.

        The log-likelihood should only be requested if required.

        The natural log (base e) likelihood is returned, or null if not requested.

        Specified by:
        getLogLikelihood in interface QueryOutput
      • setLogLikelihood

        public void setLogLikelihood​(Double value)
        Sets the log-likelihood value. On return from a query the value will be null unless QueryOptions.getLogLikelihood() is set to true.

        The log-likelihood should only be requested if required.

        The natural log (base e) likelihood is returned, or null if not requested.

        Specified by:
        setLogLikelihood in interface QueryOutput
      • reset

        public void reset()
        Resets all values to their defaults. For example the log-likelihood is reset to null.
        Specified by:
        reset in interface QueryOutput