Computation buffers

struct PoisProbs

The PoisProbs structure houses computation buffers that are shared between algorithms.

typedef struct PoisProbs {
    size_t n_obs;
    size_t m_states;
    scalar *lsdp;
    scalar *lalpha;
    scalar *lbeta;
    scalar *lcxpt;
} PoisProbs;
size_t PoisProbs.n_obs

Number of observations in the input data set.

size_t PoisProbs.m_states

Number of states in the HMM.

scalar *PoisProbs.lsdp

Points to an object of n_obs times m_states elements that stores the logarithm of the state-dependend probabilities of the input data under the Poisson distribution for each state.

scalar *PoisProbs.lalpha

Points to an object of n_obs times m_states elements that stores the logarithm of the forward probabilities of the input data under the model parameters.

scalar *PoisProbs.lbeta

Points to an object of n_obs times m_states elements that stores the logarithm of the backward probabilities of the input data under the model parameters.

scalar *PoisProbs.lcsp

Points to an object of n_obs times m_states elements that stores the logarithm of the conditional state probabilities.

Object creation

PoisProbs *PoisProbs_New(const size_t n_obs, const size_t m_states)

Allocate memory for a new PoisProbs structure.

PoisProbs_Delete(this)

Delete a PoisProbs from memory.