Description Usage Arguments Value Examples
View source: R/DPH_construction.R
DPHrep
computes the representation of of a integer-linear-combination of the Site Frequency as a discrete phase-type distribution.
The construction is described in Section 7.1 of Hobolth (2020).
1 | DPHrep(bM, bA, ba)
|
bM |
Subtransition probabilities un the underlying discrete Markov chain (cf. Figure 6). |
bA |
Statespace of the underlying block-counting process |
ba |
Vector of integer coeffcients |
List consisting of bMt: The constructed matrix subtransition probabilities. sizes_of_blocks: The sizes of the constructed blocks.
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
ba = c(1,2,3)
ph_bcp = block_counting_process(4)
subintensity_matrix = ph_bcp$subint_mat
bA = ph_bcp$reward_mat
ph = phase_type(subintensity_matrix)
ph_rew_obj = reward_phase_type(ph, rowSums(rew_mat))
bS = ph_rew_obj$subint_mat
bM = solve(diag(dim(bS)[1])-(2/theta)*bS)
DPHrep(ba,bM)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.