public class MCUtils extends Object
Modifier and Type | Method and Description |
---|---|
static double[] |
getObservations(HmmInnovation[] innovations,
int state)
Get all observations that occur in a particular state.
|
static Vector |
getStateCounts(int[] states)
Count the numbers of occurrences of states.
|
static DenseMatrix |
getTransitionCounts(int[] states)
Count the numbers of times the state goes from one state to another.
|
public static Vector getStateCounts(int[] states)
states
- the Markov state labels, counting from 1public static DenseMatrix getTransitionCounts(int[] states)
states
- the Markov state labels, counting from 1public static double[] getObservations(HmmInnovation[] innovations, int state)
innovations
- the HMM innovationsstate
- a stateCopyright © 2010-2020 NM FinTech Ltd.. All Rights Reserved.