public class Average
extends java.lang.Object
A class which uses a simple array (of configurable length) to store stats samples. The average is then taken as
the sum of all values >= 0 (the array is initialized with -1 values) divided by the number of non -1 values. This is
best used in cases where we have a lot of sample data entered by different threads. Each thread picks a random
array index and sets the value at the index. This will be an approximation of an average as all values
are updated after some time.
- 从以下版本开始:
- 3.4
- 作者:
- Bela Ban