mExp: Calculate the exponent of a given matrix

Description Usage Arguments Details Value Author(s) See Also

View source: R/mExp.R

Description

Function for calculating the pathway proliferation of flows in a network model through matrix exponentiation.

Usage

1
mExp(x = "matrix", n = 2)

Arguments

x

A matrix.

n

Desired exponent (i.e. the path length).

Details

This function was originally designed by Alberto Monteiro in the following R help thread: https://stat.ethz.ch/pipermail/r-help/2007-May/131330.html.

Value

Returns an exponentiated flow matrix.

Author(s)

Alberto Monteiro (https://stat.ethz.ch/pipermail/r-help/2007-May/131330.html) Matthew K. Lau

See Also

findPathLength


enaR documentation built on May 1, 2019, 10:54 p.m.