hmmpick_cost_states: Helper to calculate the cost of the different states (used...

Description Usage Arguments Examples

View source: R/hmmpick_cost_state.R

Description

Helper to calculate the cost of the different states (used for development)

Usage

1
hmmpick_cost_states(emissions_probs, scale = 1, returntotal = TRUE)

Arguments

emissions_probs

matrix (row=state; col=mark) containing the state emissions.

scale

float/int or list (length should be equal to the number of rows in emissions_probs) used to scale the states. By default, no scaling is applied.

returntotal

boolean; TRUE to return the average model cost or FALSE to return the list of state costs.

Examples

1
2
3
emissions_probs <- rbind(c(1, 0.5), c(1,0))
scale <- c(.95, .05)
hmmpickr:::hmmpick_cost_states(emissions_probs, scale)

csiu/hmmpickr documentation built on May 14, 2019, 12:24 p.m.