ACE_Stats_Value Class ReferenceHelper class for ACE_Stats. More...
Detailed DescriptionHelper class for ACE_Stats.Container struct for 64-bit signed quantity and its precision. It would be nicer to use a fixed-point class, but this is sufficient. Users typically don't need to use this class directly; see ACE_Stats below. Constructor & Destructor Documentation
Constructor, which requires precision in terms of number of decimal digits. The more variation in the data, and the greater the data values, the smaller the precision must be to avoid overflow in the standard deviation calculation. 3 might be a good value, or maybe 4. 5 will probably be too large for non-trivial data sets.
Member Function Documentation
Accessor for precision.
Set the whole_ field.
Accessor for the whole_ field.
Set the fractional_ field.
Accessor for the fractional_ field.
Calculates the maximum value of the fractional portion, given its precision.
Access the value as an _unsigned_ 64 bit quantity. It scales the value up by {precision} decimal digits, so that no precision will be lost. It assumes that {whole_} is >= 0.
Print to stdout.
Member Data Documentation
The integer portion of the value.
The fractional portion of the value.
The number of decimal digits of precision represented by {fractional_}. Not declared const, so the only way to change it is via the assignment operator.
The documentation for this class was generated from the following files: Generated on Mon Sep 15 07:17:10 2008 for ACE by ![]() |