Print method for cont_phase_type, disc_phase_type, mult_cont_phase_type and mult_disc_phase_type classes.

# S3 method for cont_phase_type
print(x, ...)

# S3 method for disc_phase_type
print(x, ...)

# S3 method for mult_cont_phase_type
print(x, ...)

# S3 method for mult_disc_phase_type
print(x, ...)

Arguments

x

phase-type object

...

other arguments not used by this method

Value

Prints the phase-type object as a list.

Examples

subintensity_matrix <- matrix(c(-1.5, 1.5, 0,
                                 0,  -1,   1,
                                 0,   0,  -0.5),
                              ncol = 3,
                              byrow = TRUE)
ph1 <- PH(subintensity_matrix)
#> Warning: 
#>  The initial probability vector is automatically generated.

print(ph1)
#> $subint_mat
#>      [,1] [,2] [,3]
#> [1,] -1.5  1.5  0.0
#> [2,]  0.0 -1.0  1.0
#> [3,]  0.0  0.0 -0.5
#> 
#> $init_probs
#>      [,1] [,2] [,3]
#> [1,]    1    0    0
#> 
#> $defect
#> [1] 0
#> 
#> attr(,"class")
#> [1] "cont_phase_type"