Class BethePermanent

java.lang.Object
jline.lib.perm.PermSolver
jline.lib.perm.BethePermanent

public class BethePermanent extends PermSolver
Implementation of Sum Product Algorithm (SPA) to approximate the Bethe permanent.
  • Constructor Details

    • BethePermanent

      public BethePermanent(Matrix matrix)
    • BethePermanent

      public BethePermanent(Matrix matrix, double epsilon, int maxIteration)
    • BethePermanent

      public BethePermanent(Matrix matrix, double epsilon, int maxIteration, boolean solve)
  • Method Details

    • compute

      public void compute()
      Description copied from class: PermSolver
      Compute the permanent or approximation for the given matrix. This method must be implemented by all concrete solver classes. The result should be stored in the value field.
      Specified by:
      compute in class PermSolver