finalize_generator: Finalize generator normalizing edge weights

finalize_generatorR Documentation

Finalize generator normalizing edge weights

Description

Checks if a generator can be normalized so that it actually is a Markov Chain

Usage

finalize_generator(generator)

Arguments

generator

a generator

Value

A generator with edge weights that respect DTMC definition

Examples

require(dplyr)

example_dataset() %>%
 make_generator_stub() %>% 
 set_generator_edges(
   list(
    "D", "A, D", 1 , 
    "A", "A, D", 1 , 
    "A, D", "A, C, D", 1 , 
    "A, D", "A, B, D", 1 , 
    "Clonal", "D", 1 , 
    "Clonal", "A", 1 , 
    "D", "D", 1 , 
    "A", "A", 1 , 
    "A, D", "A, D", 1 , 
    "A, C, D", "A, C, D", 1 , 
    "A, B, D", "A, B, D", 1 , 
    "Clonal", "Clonal", 1 
  )) %>% 
  finalize_generator


redsnic/CIMICE documentation built on March 30, 2022, 2:46 a.m.