Skip to contents

Convenience wrapper around hmm_forward_filter() returning only the observable one-step predictive log-density.

Usage

hmm_predictive_log_density(log_emission, transition_matrix, initial_probs)

Arguments

log_emission

Numeric matrix of log-emission densities.

transition_matrix

Square transition probability matrix.

initial_probs

Initial state probability vector.

Value

A numeric vector of predictive log-densities.