@Test public void testGetStateTransitionProbabilities() { System.out.println("getStateTransitionProbabilities"); HMM hmm = new HMM(pi, new Matrix(a), new Matrix(b)); Matrix result = hmm.getStateTransitionProbabilities(); for (int i = 0; i < a.length; i++) { for (int j = 0; j < a[i].length; j++) { assertEquals(a[i][j], result.get(i, j), 1E-7); } } }
public Matrix getStateTransitionProbabilities() { return a; }
HMM implements Serializable { public Matrix getStateTransitionProbabilities() { return a; } }
HMM implements Serializable { public Matrix getStateTransitionProbabilities() { return a; } HMM(double[] pi, Matrix a, Matrix b); }
HMM implements Serializable { public Matrix getStateTransitionProbabilities() { return a; } HMM(double[] pi, Matrix a, Matrix b); double[] getInitialStateProbabilities(); Matrix getStateTransitionProbabilities(); Matrix getSymbolEmissionProbabilities(); double p(int[] o, int[] s); double logp(int[] o, int[] s); double p(int[] o); double logp(int[] o); int[] predict(int[] o); static HMM fit(int[][] observations, int[][] labels); static HMM fit(T[][] observations, int[][] labels, ToIntFunction<T> ordinal); void update(T[][] observations, int iterations, ToIntFunction<T> ordinal); void update(int[][] observations, int iterations); @Override String toString(); }
HMM implements Serializable { public Matrix getStateTransitionProbabilities() { return a; } HMM(double[] pi, Matrix a, Matrix b); double[] getInitialStateProbabilities(); Matrix getStateTransitionProbabilities(); Matrix getSymbolEmissionProbabilities(); double p(int[] o, int[] s); double logp(int[] o, int[] s); double p(int[] o); double logp(int[] o); int[] predict(int[] o); static HMM fit(int[][] observations, int[][] labels); static HMM fit(T[][] observations, int[][] labels, ToIntFunction<T> ordinal); void update(T[][] observations, int iterations, ToIntFunction<T> ordinal); void update(int[][] observations, int iterations); @Override String toString();  }