protected void calculateOCGroupDist(ArrayList<Group> gs, ArrayList<Graph.OpinionCluster> ocSet, int agentpool) {
		int numGroups = 0;
		//numClusters = ocSet.size();
		for(Group g: gs) if(g.getAgents().size() > 0) numGroups++;
		
		int ocPos;
		double[] ocTrial = new double[ocGroupAverageSet.length];
		for(Group g: gs) {
			for(Graph.OpinionCluster o : ocSet) {
				ocPos = (int) Math.round(o.opVal*(ocGroupAverageSet.length-1));
				ocTrial[ocPos] += (double)1 / numGroups;
			}
		}
		
		for(int i = 0; i < ocTrial.length; i++) {
			//ocTrial[i];
			ocGroupAverageSet[i] += ocTrial[i] / Constants._trials;
		}
	}