Pretty summary of the disc_phase_type class.

# S3 method for disc_phase_type
summary(object, ...)

Arguments

object

a disc_phase_type object

...

other arguments passed to methods

Value

This function prints a nicely-formatted summary of a disc_phase_type object. The summary includes the sub-intensity matrix, the initial probabilities, the defect, the mean and the variance of the phase-type object.

Examples


dph <- DPH(matrix(c(0.4, 0, 0.2,
                    0.5, 0.3, 0.2,
                    0, 0.7, 0.2), ncol = 3))
#> Warning: 
#>  The initial probability vector is automatically generated.

summary(dph)
#> 
#> Subintensity matrix:
#>      [,1] [,2] [,3]
#> [1,]  0.4  0.5  0.0
#> [2,]  0.0  0.3  0.7
#> [3,]  0.2  0.2  0.2
#> 
#> Initial probabilities:
#>      [,1] [,2] [,3]
#> [1,]    1    0    0
#> 
#> Defect:
#> [1] 0
#> 
#> Mean: 6.428571
#> 
#> Variance: 23.51648
#>