getPosterior {STAN} | R Documentation |
The function calculates posterior state probabilities for one or more observation sequence.
getPosterior(hmm, obs=list(), emissionProbs=list(), dirFlags=list(), verbose=FALSE, nCores=1, sizeFactors=matrix(1, nrow=length(obs), ncol=ncol(obs[[1]])))
hmm |
The Hidden Markov Model. |
obs |
The observations. A list of one or more entries containing the observation matrix ( |
emissionProbs |
List of precalculated emission probabilities of emission function is of type 'null'. |
dirFlags |
The flag sequence is needed when a bdHMM is fitted on undirected data (e.g.) ChIP only. It is a |
verbose |
|
nCores |
Number of cores to use for computations. |
sizeFactors |
Library size factors for Emissions PoissonLogNormal or NegativeBinomial as a length(obs) x ncol(obs[[1]]) matrix. |
A list containing for the observation sequences the posterior state (col) distribution at each position (row).
data(example) hmm_ex = initHMM(observations, nStates=3, method="Gaussian") hmm_fitted = fitHMM(observations, hmm_ex) posterior = getPosterior(hmm_fitted, observations)