progressreport {spatstat}R Documentation

Print Progress Reports

Description

Prints Progress Reports during a loop or iterative calculation.

Usage

progressreport(i, n, every = max(1, ceiling(n/100)), nperline = min(charsperline, every * ceiling(charsperline/(every + 3))), charsperline = 60)

Arguments

i Integer. The current iteration number (from 1 to n).
n Integer. The (maximum) number of iterations to be computed.
every Optional integer. The number of iterations between successive reports.
nperline Optional integer. The maximum number of reports to be printed per line of output.
charsperline Optional integer. The number of characters in a line of output.

Details

This is a convenient function for reporting progress during an iterative sequence of calculations or a suite of simulations.

Value

Null.

Author(s)

Adrian Baddeley adrian@maths.uwa.edu.au http://www.maths.uwa.edu.au/~adrian/ and Rolf Turner rolf@math.unb.ca http://www.math.unb.ca/~rolf

Examples

  for(i in 1:40) progressreport(i, 40)

[Package spatstat version 1.11-3 Index]