public double[] getInitialStateProbabilities() {
        return pi;
    }
@Test
    public void testGetInitialStateProbabilities() {
        System.out.println("getInitialStateProbabilities");
        HMM hmm = new HMM(pi, Matrix.of(a), Matrix.of(b));
        double[] result = hmm.getInitialStateProbabilities();
        for (int i = 0; i < pi.length; i++) {
            assertEquals(pi[i], result[i], 1E-7);
        }
    }