@Test
public void matrixToParamsTest(){

    long[][] matrix = new long[][]{{5, 1, 2}, {1, 4, 0}, {0, 1, 3}};
    LongMatrix longMatrix = new LongMatrix(matrix);
    Params params = ClusterEvaluationUtil.extractParamsFromConfusionMatrix(longMatrix);
    Assert.assertEquals(params.get(ClusterMetrics.NMI), 0.364, 0.001);
    Assert.assertEquals(params.get(ClusterMetrics.PURITY), 0.705, 0.001);
    Assert.assertEquals(params.get(ClusterMetrics.RI), 0.68, 0.01);
    Assert.assertEquals(params.get(ClusterMetrics.ARI), 0.24, 0.01);
}