ACE_Stats Class ReferenceProvides simple statistical analysis. More...
Collaboration diagram for ACE_Stats:
Detailed DescriptionProvides simple statistical analysis.Simple statistical analysis package. Prominent features are:
Example usage:
* ACE_Stats stats; * for (u_int i = 0; i < n; ++i) * { * const ACE_UINT32 sample = ...; * stats.sample (sample); * } * stats.print_summary (3); * Constructor & Destructor Documentation
Default constructor.
Member Function Documentation
Provide a new sample. Returns 0 on success, -1 if it fails due to running out of memory, or to rolling over of the sample count.
Access the number of samples provided so far.
Value of the minimum sample provided so far.
Value of the maximum sample provided so far.
Access the mean of all samples provided so far. The fractional part is to the specified number of digits. E.g., 3 fractional digits specifies that the fractional part is in thousandths.
Access the standard deviation, whole and fractional parts. See description of {mean} method for argument descriptions.
Print summary statistics. If scale_factor is not 1, then the results are divided by it, i.e., each of the samples is scaled down by it. If internal overflow is reached with the specified scale factor, it successively tries to reduce it. Returns -1 if there is overflow even with a 0 scale factor.
Initialize internal state.
Utility division function, for ACE_UINT64 dividend.
Utility division function, for ACE_Stats_Value dividend.
Sqrt function, which uses an oversimplified version of Newton's method. It's not fast, but it doesn't require floating point support.
Print summary statistics to stdout.
Member Data Documentation
Internal indication of whether there has been overflow. Contains the errno corresponding to the cause of overflow.
Number of samples.
Minimum sample value.
Maximum sample value.
The samples.
The documentation for this class was generated from the following files: Generated on Mon Sep 15 07:17:10 2008 for ACE by 1.5.5 |