This module accumulates values (e.g., the pressure) over the course of the simulation and returns statistical measures (e.g., sum, mean, and variance).
Construct accumulator module.
Parameters: |
|
---|
Sample next value by calling args.acquire.
Sum of accumulated values. Calculated as mean × count.
Mean of accumulated values.
Standard error of mean of accumulated values.
Variance of accumulated values.
Number of samples accumulated.
Reset the accumulator.
Disconnect accumulator from core.
Profiler description.
Write statistical measures to a file.
Parameters: |
|
---|---|
Returns: | instance of group writer |
The argument location specifies a path in a structured file format like H5MD given as a table of strings, for example {"observables", group label}.
The table fields specifies which statistical measures are written, It may either be passed as an indexed table, e.g. {"mean", "error_of_mean"}, or as a dictionary, e.g., {mu = "mean", sigma = "variance"}; the table form is interpreted as {mean = "mean", ...}. The keys denote the field names in the file and are appended to location. The values specify the data slots, i.e, the methods of the accumulator module, valid values are sum, mean, error_of_mean, variance, and count. Defaults to {"mean", "error_of_mean", "count"}.