ringlattice: Function to generate a ring lattice

Description Usage Arguments Value Examples

View source: R/rfuncs.R

Description

Function to generate a ring lattice

Usage

1

Arguments

N

the number of nodes

K

the number of neighbors to which each node is connected so degree = 2xK

Value

An object of class CM (contact matrix)

Examples

1
cm=ringlattice(N=20,K=4)

Example output

Loading required package: shiny
Loading required package: deSolve
Loading required package: polspline

epimdr documentation built on March 26, 2020, 7:41 p.m.

Related to ringlattice in epimdr...