simulateTracks: Generate Tracks by Simulation

Description Usage Arguments Value Examples

Description

Generic function that executes expr, which is expected to return a track, n times and stores the output in a tracks object. Basically, this works like replicate but for tracks.

Usage

1
simulateTracks(n, expr)

Arguments

n

number of tracks to be generated.

expr

the expression, usually a call, that generates a single track.

Value

A tracks object containing n tracks.

Examples

1
2
3
## Generate 10 tracks, 100 steps each, from a random walk with standard normally
## distributed increments and plot them
plot( simulateTracks( 10, brownianTrack(100,3) ) )

MotilityLab documentation built on May 2, 2019, 4:59 p.m.