|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.esri.arcgis.geodatabaseextensions.TerrainFieldStatistics
public class TerrainFieldStatistics
Esri TerrainFieldStatistics object.
Constructor Summary | |
---|---|
TerrainFieldStatistics(Object obj)
Construct a TerrainFieldStatistics using a reference to such an object returned from ArcGIS Engine or Server. |
Method Summary | |
---|---|
boolean |
equals(Object o)
Compare this object with another |
double |
getCount()
The number of elements. |
String |
getFieldName()
The field name associated with the statistics. |
double |
getMaximum()
The maximum value. |
double |
getMean()
The mean value. |
double |
getMinimum()
The minimum value. |
double |
getStandardDeviation()
The standard deviation. |
IDoubleArray |
getUniqueValueCounts()
Returns the number of unique values. |
IDoubleArray |
getUniqueValuesAsDouble()
Returns the unique values. |
ILongArray |
getUniqueValuesAsLong()
Returns the unique values. |
int |
getUniqueValueType()
Returns esriTerrainLong for integer-type data (except for unsigned long), and esriTerrainDouble for unsigned long and floating point data. |
int |
hashCode()
the hashcode for this object |
boolean |
isEmpty()
Indicates if the object is empty. |
boolean |
isNeedsUpdate()
Indicates if update is necessary. |
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 TerrainFieldStatistics(Object obj) throws IOException
obj
to TerrainFieldStatistics
. *
TerrainFieldStatistics o = (TerrainFieldStatistics)obj; // will not work
TerrainFieldStatistics o = new TerrainFieldStatistics(obj); // Use this constructor instead
* @param obj an object returned from ArcGIS Engine or Server
IOException
- if there are interop problems
TerrainFieldStatistics theTerrainFieldStatistics = (TerrainFieldStatistics) obj;
Method Detail |
---|
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public boolean isEmpty() throws IOException, AutomationException
Returns TRUE if statistics have yet to be calculated for this field. See ITerrainEdit3.CalculateFieldStatistics.
isEmpty
in interface ITerrainFieldStatistics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public boolean isNeedsUpdate() throws IOException, AutomationException
Returns TRUE if the statistics for the field are out of date due to edits which have taken place on the terrain and need to be recalculated. See ITerrainEdit3.CalculateFieldStatistics.
isNeedsUpdate
in interface ITerrainFieldStatistics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public String getFieldName() throws IOException, AutomationException
The name of the field from which these statistics are based.
getFieldName
in interface ITerrainFieldStatistics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getCount() throws IOException, AutomationException
The total number of observations used to generate the statistics. The value is a whole number but a double is used to prevent overflow situations.
getCount
in interface ITerrainFieldStatistics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getMinimum() throws IOException, AutomationException
The minimum of all observed values for the field.
getMinimum
in interface ITerrainFieldStatistics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getMaximum() throws IOException, AutomationException
The maximum of all observed values for the field.
getMaximum
in interface ITerrainFieldStatistics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getMean() throws IOException, AutomationException
The average of all observed values for the field.
getMean
in interface ITerrainFieldStatistics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public double getStandardDeviation() throws IOException, AutomationException
The standard deviation of all observed values for the field.
getStandardDeviation
in interface ITerrainFieldStatistics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public int getUniqueValueType() throws IOException, AutomationException
Used to indicate whether unique values for the field should be retrieved using ITerrainFieldStatistics.GetUniqueValuesAsLong or ITerrainFieldStatistics.GetUniqueValuesAsDouble. When a value of esriTerrainLong is returned call GetUniqueValuesAsLong. When a value of esriTerrainDouble is returned call GetUniqueValuesAsDouble. These two types can be be used to capture/represent other types if they happen to be stored as chars, shorts, or floats, etc.
getUniqueValueType
in interface ITerrainFieldStatistics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public ILongArray getUniqueValuesAsLong() throws IOException, AutomationException
Returns an array containing the unique values for the set of observations. For example, if a collection of 1000 observations only contains a few different values, say 1, 5, and 10, it is this function which returns just those three values.
Use ITerrainFieldStatistics.UniqueValueType to determine whether to obtain the values using this method or ITerrainFieldStatistics.GetUniqueValuesAsDouble.
There is a one to one correspondence between the values in this array and those returned by ITerrainFieldStatistics.GetUniqueValueCounts. The latter contains the number of observed values.
This method stops collecting unique values when there's more than 256. That indicates the data is more continuous in nature than discrete.
getUniqueValuesAsLong
in interface ITerrainFieldStatistics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IDoubleArray getUniqueValuesAsDouble() throws IOException, AutomationException
Returns an array containing the unique values for the set of observations. For example, if a collection of 1000 observations only contains a few different values, say 1.1, 5.4. and 10.3, it is this function which returns just those three values.
Use ITerrainFieldStatistics.UniqueValueType to determine whether to obtain the values using this method or ITerrainFieldStatistics.GetUniqueValuesAsLong.
There is a one to one correspondence between the values in this array and those returned by GetUniqueValueCounts. The latter contains the number of observed values.
This method stops collecting unique values when there's more than 256. That indicates the data is more continuous in nature than discrete.
getUniqueValuesAsDouble
in interface ITerrainFieldStatistics
IOException
- If there are interop problems.
AutomationException
- If the ArcObject component throws an exception.public IDoubleArray getUniqueValueCounts() throws IOException, AutomationException
Returns an array where each entry is the number of observations with the same value. It can be used to generate a histogram. For example, if the field represents class codes and there are two values of class codes, say '2' and '5', the first value in the returned array represents the number of observations with a class code of 2, and the second the number with a class code of 5. The sum of the values returned in the array equals the total number of observations (i.e., ITerrainFieldStatistics.Count).
There is a one to one correspondence between the values in this array and those returned by ITerrainFieldStatistics.GetUniqueValuesAsDouble and ITerrainFieldStatistics.GetUniqueValuesAsLong. Those contain the observed values, this contains the number of observed values.
The array values are whole numbers but doubles are used to prevent overflow situations.
This method stops tallying unique values when there's more than 256. That indicates the data is more continuous in nature than discrete.
getUniqueValueCounts
in interface ITerrainFieldStatistics
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 |