com.esri.arcgis.system
Class BaseStatistics

java.lang.Object
  extended by com.esri.arcgis.system.BaseStatistics
All Implemented Interfaces:
com.esri.arcgis.interop.RemoteObjRef, IFrequencyStatistics, IGenerateStatistics, IStatisticsResults, java.io.Serializable

public class BaseStatistics
extends java.lang.Object
implements com.esri.arcgis.interop.RemoteObjRef, IGenerateStatistics, IStatisticsResults, IFrequencyStatistics

COM Class 'BaseStatistics'. Generated 3/19/2015 1:20:47 PM from 'C:\ArcGIS\COM\esriSystem.olb'

Description 'Base statistics class for generating and reporting statistics.' Generator Options: PromptForTypeLibraries = False ClashPrefix = esri_ LowerCaseMemberNames = True IDispatchOnly = False RetryOnReject = False AwtForOcxs = True ArraysAsObjects = False DontRenameSameMethods = False ImplementConflictingInterfaces = True ReuseMethods = True RenameConflictingInterfaceMethods = True GenBeanInfo = True GenerateJavadoc =

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.esri.arcgis.system.IGenerateStatistics
IID, IIDb9c43589_78b8_11d2_ae60_080009ec732a, xxDummy
 
Fields inherited from interface com.esri.arcgis.system.IStatisticsResults
IID, IIDb9c4358a_78b8_11d2_ae60_080009ec732a, xxDummy
 
Fields inherited from interface com.esri.arcgis.system.IFrequencyStatistics
IID, IIDb9c4358b_78b8_11d2_ae60_080009ec732a, xxDummy
 
Constructor Summary
BaseStatistics()
          Constructs a BaseStatistics using ArcGIS Engine.
BaseStatistics(java.lang.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(java.lang.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 java.lang.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.
 com.esri.arcgis.interop.Dispatch getJintegraDispatch()
          Deprecated. Internal use only.
 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 release()
          Release a BaseStatistics.
 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
 

Constructor Detail

BaseStatistics

public BaseStatistics()
               throws java.io.IOException,
                      java.net.UnknownHostException
Constructs a BaseStatistics using ArcGIS Engine.

Throws:
java.io.IOException - if there are interop problems
java.net.UnknownHostException - if there are interop problems

BaseStatistics

public BaseStatistics(java.lang.Object obj)
               throws java.io.IOException
Deprecated. As of ArcGIS 9.2, replaced by normal Java casts.
BaseStatistics theBaseStatistics = (BaseStatistics) obj;

Construct a BaseStatistics using a reference to such an object returned from ArcGIS Engine or Server. This is semantically equivalent to casting obj to BaseStatistics.

Parameters:
obj - an object returned from ArcGIS Engine or Server
Throws:
java.io.IOException - if there are interop problems
Method Detail

getClsid

public static java.lang.String getClsid()
getClsid.


equals

public boolean equals(java.lang.Object o)
Compare this object with another

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
the hashcode for this object

Overrides:
hashCode in class java.lang.Object

getJintegraDispatch

public com.esri.arcgis.interop.Dispatch getJintegraDispatch()
Deprecated. Internal use only.

Specified by:
getJintegraDispatch in interface com.esri.arcgis.interop.RemoteObjRef

release

public void release()
Release a BaseStatistics.

Specified by:
release in interface com.esri.arcgis.interop.RemoteObjRef

setSimpleStats

public void setSimpleStats(boolean rhs1)
                    throws java.io.IOException,
                           AutomationException
Indicates if simple statistics are sufficient. These are Count, Minimum, Maximum, Sum, Mean, Standard Deviation.

Specified by:
setSimpleStats in interface IGenerateStatistics
Parameters:
rhs1 - The rhs1 (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setSample

public void setSample(boolean rhs1)
               throws java.io.IOException,
                      AutomationException
Indicates if the statistics represent a sample of the data (used for calculating standard deviation).

Specified by:
setSample in interface IGenerateStatistics
Parameters:
rhs1 - The rhs1 (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

reset

public void reset(boolean simpleStats)
           throws java.io.IOException,
                  AutomationException
Clears out the currently gathered statistics.

Specified by:
reset in interface IGenerateStatistics
Parameters:
simpleStats - The simpleStats (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

addValue

public void addValue(double value)
              throws java.io.IOException,
                     AutomationException
Adds a data value to the collection of values used to derive the statistics.

Specified by:
addValue in interface IGenerateStatistics
Parameters:
value - The value (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

finalCompute

public void finalCompute()
                  throws java.io.IOException,
                         AutomationException
May be called after all values have been added to establish frequeny table (the function is not required any more).

Specified by:
finalCompute in interface IGenerateStatistics
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getCount

public int getCount()
             throws java.io.IOException,
                    AutomationException
The count of the values.

Specified by:
getCount in interface IStatisticsResults
Returns:
The count
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getMinimum

public double getMinimum()
                  throws java.io.IOException,
                         AutomationException
The minimum value.

Specified by:
getMinimum in interface IStatisticsResults
Returns:
The min
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getMaximum

public double getMaximum()
                  throws java.io.IOException,
                         AutomationException
The maximum value.

Specified by:
getMaximum in interface IStatisticsResults
Returns:
The max
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getSum

public double getSum()
              throws java.io.IOException,
                     AutomationException
The sum of the values.

Specified by:
getSum in interface IStatisticsResults
Returns:
The sum
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getMean

public double getMean()
               throws java.io.IOException,
                      AutomationException
The arithmetic mean.

Specified by:
getMean in interface IStatisticsResults
Returns:
The mean
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getStandardDeviation

public double getStandardDeviation()
                            throws java.io.IOException,
                                   AutomationException
The standard deviation, based on sample flag.

Specified by:
getStandardDeviation in interface IStatisticsResults
Returns:
The stdDev
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getFrequencyIntervalCount

public int getFrequencyIntervalCount()
                              throws java.io.IOException,
                                     AutomationException
The frequency interval count.

Specified by:
getFrequencyIntervalCount in interface IFrequencyStatistics
Returns:
The numIntervals
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

setFrequencyIntervalCount

public void setFrequencyIntervalCount(int numIntervals)
                               throws java.io.IOException,
                                      AutomationException
The frequency interval count.

Specified by:
setFrequencyIntervalCount in interface IFrequencyStatistics
Parameters:
numIntervals - The numIntervals (in)
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

computeAutoFrequencyIntervals

public void computeAutoFrequencyIntervals()
                                   throws java.io.IOException,
                                          AutomationException
Computes a suitable frequency interval count for the number of values.

Specified by:
computeAutoFrequencyIntervals in interface IFrequencyStatistics
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getFrequencyIntervalSize

public double getFrequencyIntervalSize()
                                throws java.io.IOException,
                                       AutomationException
The size (range) of each frequency interval.

Specified by:
getFrequencyIntervalSize in interface IFrequencyStatistics
Returns:
The intervalSize
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getFrequencyClassCount

public int getFrequencyClassCount(int intervalIndex)
                           throws java.io.IOException,
                                  AutomationException
The frequency class count at a given interval index.

Specified by:
getFrequencyClassCount in interface IFrequencyStatistics
Parameters:
intervalIndex - The intervalIndex (in)
Returns:
The count
Throws:
java.io.IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.