Description Usage Arguments Value
For a matrix M, compute (1-p) ( I + p M + p^2 M^2 + ... ) = (1-p)(I-pM)^-1 . If M is a transition matrix, the result is the distribution after taking a Geometric(p) number of steps.
1 |
M |
The migration matrix. |
p |
The parameter in the geometric distribution (must be between 0 and 1). |
eps |
The numerical tolerance. |
n |
The number of terms to use, minus one (defaults so that p^n = eps). |
A matrix of the same form as M.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.