|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.system.BaseStatistics
public class BaseStatistics
Base statistics class for generating and reporting statistics.
The BaseStatistics class provides facilities to store and retrieve statistics for a set of numeric values.
BaseStatistics is normally used with the DataStatistics object (defined in esriGeodatabase) in order to return statistics on tabular data. However, a BaseStatistics object can also be cocreated directly to generate statistics for any set of data values.
DataStatistics
,
Serialized FormConstructor Summary | |
---|---|
BaseStatistics()
Constructs a BaseStatistics using ArcGIS Engine. |
|
BaseStatistics(Object obj)
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts. BaseStatistics theBaseStatistics = (BaseStatistics) obj; |
Method Summary | |
---|---|
void |
addValue(double value)
Adds a data value to the collection of values used to derive the statistics. |
void |
computeAutoFrequencyIntervals()
Computes a suitable frequency interval count for the number of values. |
boolean |
equals(Object o)
Compare this object with another |
void |
finalCompute()
May be called after all values have been added to establish frequeny table (the function is not required any more). |
static String |
getClsid()
getClsid. |
int |
getCount()
The count of the values. |
int |
getFrequencyClassCount(int intervalIndex)
The frequency class count at a given interval index. |
int |
getFrequencyIntervalCount()
The frequency interval count. |
double |
getFrequencyIntervalSize()
The size (range) of each frequency interval. |
double |
getMaximum()
The maximum value. |
double |
getMean()
The arithmetic mean. |
double |
getMinimum()
The minimum value. |
double |
getStandardDeviation()
The standard deviation, based on sample flag. |
double |
getSum()
The sum of the values. |
int |
hashCode()
the hashcode for this object |
void |
reset(boolean simpleStats)
Clears out the currently gathered statistics. |
void |
setFrequencyIntervalCount(int numIntervals)
The frequency interval count. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.esri.arcgis.interop.RemoteObjRef |
---|
getJintegraDispatch, release |
Constructor Detail |
---|
public BaseStatistics() throws IOException, UnknownHostException
IOException
- if there are interop problems
UnknownHostException
- if there are interop problemspublic BaseStatistics(Object obj) throws IOException
BaseStatistics theBaseStatistics = (BaseStatistics) obj;
obj
to BaseStatistics
.
obj
- an object returned from ArcGIS Engine or Server
IOException
- if there are interop problemsMethod Detail |
---|
public static String getClsid()
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public 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.
setSimpleStats
in interface IGenerateStatistics
rhs1
- The rhs1 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
setSample
in interface IGenerateStatistics
rhs1
- The rhs1 (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IStatisticsResults.getStandardDeviation()
public void reset(boolean simpleStats) throws IOException, AutomationException
Removes all of the data values from the BaseStatistics.
reset
in interface IGenerateStatistics
simpleStats
- The simpleStats (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public 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.
addValue
in interface IGenerateStatistics
value
- The value (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void finalCompute() throws IOException, AutomationException
The FinalCompute method is no longer required when generating statistics.
finalCompute
in interface IGenerateStatistics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getCount() throws IOException, AutomationException
Returns the Count of data values in the BaseStatistics used to derive the statistics. Use this property when IGenerateStatistics.SimpleStats is set to true.
getCount
in interface IStatisticsResults
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getMinimum() throws IOException, AutomationException
Returns the Minimum data values in the BaseStatistics. Use this property when IGenerateStatistics.SimpleStats is set to true.
getMinimum
in interface IStatisticsResults
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getMaximum() throws IOException, AutomationException
Returns the Maximum data values in the BaseStatistics. Use this property when IGenerateStatistics.SimpleStats is set to true.
getMaximum
in interface IStatisticsResults
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getSum() throws IOException, AutomationException
Returns the Sum of all the data values in the BaseStatistics. Use this property when IGenerateStatistics.SimpleStats is set to true.
getSum
in interface IStatisticsResults
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getMean() throws IOException, AutomationException
Returns the arithmetic Mean of all the data values in the BaseStatistics. Use this property when IGenerateStatistics.SimpleStats is set to true.
getMean
in interface IStatisticsResults
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getStandardDeviation() throws IOException, AutomationException
Returns the StandardDeviation of all the data values in the BaseStatistics.
If your data is a sample of the real data, you should indicate so with IGenerateStatistics::Sample before calling StandardDeviation.
By default it returns the Sample Standard Deviation.
getStandardDeviation
in interface IStatisticsResults
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.IGenerateStatistics.setSample(boolean)
public int getFrequencyIntervalCount() throws IOException, AutomationException
Either set the number of data intervals using the FrequencyIntervalCount property or use the ComputeAutoFrequencyIntervals method to automatically set the FrequencyIntervalCount based upon the data in the BaseStatistics.
Use the FrequencyIntervalSize to return the size range of each data interval.
getFrequencyIntervalCount
in interface IFrequencyStatistics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void setFrequencyIntervalCount(int numIntervals) throws IOException, AutomationException
setFrequencyIntervalCount
in interface IFrequencyStatistics
numIntervals
- The numIntervals (in)
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public void computeAutoFrequencyIntervals() throws IOException, AutomationException
The ComputeAutoFrequencyIntervals automatically sets the FrequencyIntervalCount based upon the data in the BaseStatistics.
computeAutoFrequencyIntervals
in interface IFrequencyStatistics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getFrequencyIntervalSize() throws IOException, AutomationException
Returns the size range of each data interval based upon the FrequencyIntervalCount property and the data values in the BaseStatistics.
getFrequencyIntervalSize
in interface IFrequencyStatistics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getFrequencyClassCount(int intervalIndex) throws IOException, AutomationException
getFrequencyClassCount
in interface IFrequencyStatistics
intervalIndex
- The intervalIndex (in)
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 |