// // Compute the average probability between two agents, each with a domain size of m // who find each other acceptable and can rank each other in m ways (therefore m*m) possibilities // import java.util.*; public class PStable { static int n; static double p; static double pStable(int m){ double p = 0.0; for (int pref_i=0;pref_i1){ System.out.format("p %.3f m %d pStable %.5f logPstable: %.5f logPSol %.10f logStates: %.2f kappa: %.5f", p,m,pStable,logPStable,logPSol,states,kappa); System.out.println(); } } } }