	@Test
	public void testWeightedCorrelationColumnsOf2Datasets() throws Exception {


		File testMatrixFile = new File(this.getClass().getResource("/testMatrix.txt").toURI());

		DoubleMatrixDataset<String, String> testMatrix = DoubleMatrixDataset.loadDoubleTextData(testMatrixFile.getPath(), '\t');

		File testMatrixWeightedCorFile = new File(this.getClass().getResource("/testMatrixColumnWeightedCorMatrix.txt").toURI());
		DoubleMatrixDataset<String, String> testMatrixRealWCor = DoubleMatrixDataset.loadDoubleTextData(testMatrixWeightedCorFile.getPath(), '\t');

		File weightsFile = new File(this.getClass().getResource("/randomWeights.txt").toURI());
		DoubleMatrixDataset<String, String> weights = DoubleMatrixDataset.loadDoubleTextData(weightsFile.getPath(), '\t');

		DoubleMatrixDataset<String, String> testMatrixWCor = WeightedCorrelations.weightedCorrelationColumnsOf2Datasets(testMatrix, testMatrix, weights);

//		System.out.println("Calculated");
//		testMatrixWCor.printMatrix();
//
//		System.out.println("");
//		System.out.println("Reference");
//		testMatrixRealWCor.printMatrix();
//		
		
		compareTwoMatrices(testMatrixWCor, testMatrixRealWCor);

	}