|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IGenerateStatistics
Provides access to members used for generating statistics.
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).
Method Summary | |
---|---|
void |
addValue(double value)
Adds a data value to the collection of values used to derive the statistics. |
void |
finalCompute()
May be called after all values have been added to establish frequeny table (the function is not required any more). |
void |
reset(boolean simpleStats)
Clears out the currently gathered statistics. |
void |
setSample(boolean rhs1)
Indicates if the statistics represent a sample of the data (used for calculating standard deviation). |
void |
setSimpleStats(boolean rhs1)
Indicates if simple statistics are sufficient. |
Method Detail |
---|
void setSimpleStats(boolean rhs1) throws IOException, AutomationException
Set SimpleStats to True to obtain statistics using the IStatisticsResults interface, and set SimpleStats to False to obtain statistics using the IFrequencyStatistics interface.
rhs1
- The rhs1 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void setSample(boolean rhs1) throws IOException, AutomationException
Set Sample to True before calling IStatisticsResults::StandardDeviation if the BaseStatistics data values are a sample of the real data. Set Sample to False to retrieve the Population Standard Deviation with IStatisticsResults::StandardDeviation.
By default IStatisticResults::StandardDeviation returns the Sample Standard Deviation, so there is no need to set the Sample property to True.
rhs1
- The rhs1 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IStatisticsResults.getStandardDeviation()
void reset(boolean simpleStats) throws IOException, AutomationException
Removes all of the data values from the BaseStatistics.
simpleStats
- The simpleStats (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void addValue(double value) throws IOException, AutomationException
The AddValue method adds the specified data value to the BaseStatistics. After adding all of the data values you can then generate statistics.
value
- The value (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.void finalCompute() throws IOException, AutomationException
The FinalCompute method is no longer required when generating statistics.
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |