onerun.out(prefix, lab.out = "", input, output, pdfout = F)
mruns.out(prefix, lab.out = "", input, param, output, tXlab, pdfout = F)
rnum.out(prefix, lab.out = "", input, output, tXlab, pdfout = F)
vars.out(prefix, lab.out="", input, param, output, tXlab, pdfout=F)
Output function mruns.out is similar to onerun.out but has additional arguments tXlab for labeling graphs with units, and param for the varying parameter. It uses matplot instead of plot, in order to draw several lines on one graph, one line per run. The output file name includes one more line in order to provide information about the varying parameter.
Function rnum.out, used by sim.rnum, is similar to the onerun.out but plots the mean and the upper and lower bounds. It requires the standard deviation provided by sim.rnum.
Function vars.out is long but that is the price we pay so that it can be generic and reusable for many model functions with two or more variables and simulations of two or more runs. In addition, it plots Xi+1 versus Xi to describe phase-plane portraits of the system. To make the legend more readable, it expands the horizontal axes to 50 percent more than the maximum value of t and start the legend at the top right. For more details, the interested user can examine the function on the console.
sim.comp
, sim.mruns
, sim.rnum
, sim
, simd
, simr
The end user would not typically have to call the function. Thus, no examples are provided.
Run the code above in your browser using DataLab