private double calcMean(NetworkCell cell, ArrayList<NetworkCell> cellList, TestingParameters params) 
	{
		double aff = 0.0;
		int nrAffs = 0;
		int index = cellList.indexOf(cell);
		
		for (int i = 0; i < cellList.size(); i++)
		{
			NetworkCell cell1 = cellList.get(i);
			if(index != -1 && index != i)
			{
				aff += AffinityCalculator.calculateAffinity(cell.getDimensions(), cell1.getDimensions(), params.affinityMeasure);
				nrAffs += 1;
			}
			else if(index == -1)
			{
				aff += AffinityCalculator.calculateAffinity(cell.getDimensions(), cell1.getDimensions(), params.affinityMeasure);
				nrAffs += 1;
			}
		}
		return aff/nrAffs;
	}