Package jline.lib.perm
Class BethePermanent
java.lang.Object
jline.lib.perm.PermSolver
jline.lib.perm.BethePermanent
Implementation of Sum Product Algorithm (SPA) to approximate the Bethe permanent.
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionBethePermanent(Matrix matrix) BethePermanent(Matrix matrix, double epsilon, int maxIteration) BethePermanent(Matrix matrix, double epsilon, int maxIteration, boolean solve) -
Method Summary
Modifier and TypeMethodDescriptionvoidcompute()Compute the permanent or approximation for the given matrix.
-
Constructor Details
-
BethePermanent
-
BethePermanent
-
BethePermanent
-
-
Method Details
-
compute
public void compute()Description copied from class:PermSolverCompute 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:
computein classPermSolver
-