IRockyStatisticsAccumulator is an auxiliary struct that can be used to sum a set of values generated during a period of time in a simulation. That sum may be an approximation of the value of an integral, needed for calculating integral-based statistics. Such integral can represent a physical magnitude, for instance, an impulse or a work. Please refer to the DEM Technical Manual for a complete description of integral-based statistics.
Members
Public functions
Function add_value
- value: The value that must be added.
- double value
Function get_sum
Function reset
Function join
IRockyStatisticsAccumulator associated to two separate sets of values. After calling this method, the value returned by get_sum will be the resulting sum.
Parameters:
- other: The instance of
IRockyStatisticsAccumulatorthat accumulated the second set of values.
- const IRockyStatisticsAccumulator & other