Prints information about the amount of memory available and the contents of all Resampling Stats program variables. Total Memory: the total amount of memory currently available for current and future objects, measured in bytes. Free Memory: an approximation to the total amount of memory currently available for future allocated objects, measured in bytes. Max Memory: Returns the amount of free memory in the Java Virtual Machine. If the Java garbage collector runs, it may result in increasing the amount of Free Memory. Random Number Generator: Displays the name of the currently active random number generator. The default is the MersenneTwisterFast, the alternate is java.util.Random. Program variables: This is a list of all the existing program variables. These include the variables named in your Resampling Stats program and the temporary variables, named "internal#nnn", created to hold your program's constants. The variables are listed in alphabetical order without regard to upper/lower case differences. If you don't want to display the internal variables, you can use the Edit>Preferences... menu item to bring up the Preferences dialog window. In that window, you can check the box labeled "Don't show internal constants in PROGINFO command". Each time you run a program in Statistics101 (by clicking on the toolbar's Run button or selecting the Run>Run Program menu item), any existing variables and constants from a previous run are discarded and the new run starts from scratch. |
Sample output from the PROGINFO command: PROGRAM INFO: Total Memory: 8302592 Free Memory: 2097808 Max Memory: 66650112 Random Number Generator: MersenneTwisterFast Program Variables: coin: (0.0 1.0) heads: 2.0 internal#1: (0.0 1.0) internal#2: 10000.0 internal#3: 3.0 internal#4: 1.0 internal#5: 2.0 numberOfTrials: 10000.0 probability: 0.3827 results: (1.0 3.0 0.0 2.0 ... 3.0 2.0) successes: 3827.0 The results vector was elided to save space. |