This document is archived and information here might be outdated.  Recommended version.


IGenerateStatistics Interface (ArcObjects .NET 10.5 SDK)
ArcObjects Library Reference (System)  

IGenerateStatistics Interface

Provides access to members used for generating statistics.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Description

IGenerateStatistics is used after cocreating a BaseStatistics object directly rather than getting one from IDataStatistics::Statistics. You populate the object with data using the AddValue method before returning statistics. Always set the SimpleStats property to True, unless you want frequency statistics (see IFrequencyStatistics).

Members

Description
Method AddValue Adds a data value to the collection of values used to derive the statistics.
Method FinalCompute May be called after all values have been added to establish frequeny table (the function is not required any more).
Method Reset Clears out the currently gathered statistics.
Write-only property Sample Indicates if the statistics represent a sample of the data (used for calculating standard deviation).
Write-only property SimpleStats Indicates if simple statistics are sufficient. These are Count, Minimum, Maximum, Sum, Mean, Standard Deviation.

CoClasses that implement IGenerateStatistics

CoClasses and Classes Description
BaseStatistics Base statistics class for generating and reporting statistics.

See Also

IFrequencyStatistics Interface