#include "hmm.h"
Go to the source code of this file.
Functions | |
CPHiddenMarkovModel * | cphmm_alloc (int K, int n, int M, int Q, int J) |
void | cphmm_free (CPHiddenMarkovModel *m) |
double | cphmm_get_transition_prob (CPHiddenMarkovModel *m, int k, int i, int j) |
void | cphmm_init (CPHiddenMarkovModel *m, double **X) |
CPHiddenMarkovModel * | eeg_cphmm_init (EEG *eeg, int channel, double **X) |
CPHiddenMarkovModel* cphmm_alloc | ( | int | K, | |
int | n, | |||
int | M, | |||
int | Q, | |||
int | J | |||
) |
void cphmm_free | ( | CPHiddenMarkovModel * | m | ) |
double cphmm_get_transition_prob | ( | CPHiddenMarkovModel * | m, | |
int | k, | |||
int | i, | |||
int | j | |||
) |
STATUS: work in progress return state transition probabilities from state i to state j in trace k:
where
Details see Listgarten et al. 2005
void cphmm_init | ( | CPHiddenMarkovModel * | m, | |
double ** | X | |||
) |
initializing the model according to the parameters from Listgarten et al. 2005:
m | the model | |
X | the data, K x n |
CPHiddenMarkovModel* eeg_cphmm_init | ( | EEG * | eeg, | |
int | channel, | |||
double ** | X | |||
) |