Description Usage Arguments Details See Also Examples
View source: R/homogeneity_cost.R
Calculate the homogeneity cost of a model.
1 | homogeneity_cost(x, is_model_file = TRUE)
|
x |
Either the ChromHMM model file or
emission probabilities loaded from
|
is_model_file |
Boolean; TRUE if |
Calculated by D = sum[k=1 to K]{d_k}^2/K
where
d_k = sum[h=1 to H]{min(1-E_hk, E_hk)}
.
load_chromhmm_model
,
load_chromhmm_emissions
1 2 3 4 5 | model_file <-
system.file("extdata", "model_roadmap18.txt",
package="hmmpickr")
homogeneity_cost(model_file)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.