private static void startActCalculator(String sampleDir, String sampleName,
			int sampleCount, int dUpperBound, int betaUpperBound, boolean all, CalculationType type) {
		getTrainTestSize(sampleName);
		List<Integer> dValues = getBetaValues(dUpperBound);
		List<Integer> betaValues = getBetaValues(betaUpperBound);
		String ac = type == CalculationType.USER_TO_RESOURCE ? "_ac" : "";
		
		for (int i = 1; i <= sampleCount; i++) {
			for (int dVal : dValues) {
				ActCalculator.predictSample(sampleName, TRAIN_SIZE,
						TEST_SIZE, true, false, dVal, 5, type);
				writeMetrics(sampleDir, sampleName,
						"bll" + ac + "_" + 5 + "_" + dVal, sampleCount, 10, null);
				if (all) {
					for (int betaVal : betaValues) {
						ActCalculator.predictSample(sampleName,
								TRAIN_SIZE, TEST_SIZE, true, true, dVal,
								betaVal, type);
						writeMetrics(sampleDir, sampleName, "bll_c" + ac + "_" + betaVal
								+ "_" + dVal, sampleCount, 10, null);
					}
					ActCalculator.predictSample(sampleName,
							TRAIN_SIZE, TEST_SIZE, false, true, dVal, 5, type);
					writeMetrics(sampleDir, sampleName, "bll_r" + ac + "_" + 5 + "_"
							+ dVal, sampleCount, 10, null);
				}
			}
		}
		// n, p, q
	}