ArcObjects Library Reference (GeoDatabaseExtensions)  

ITerrainFieldStatistics.GetUniqueValueCounts Method

Returns the number of unique values.

[Visual Basic .NET]
Public Function GetUniqueValueCounts ( _
) As IDoubleArray
[C#]
public IDoubleArray GetUniqueValueCounts (
);
[C++]
HRESULT GetUniqueValueCounts(
  IDoubleArray** ppCounts
);
[C++]

Parameters

ppCounts [out, retval]

  ppCounts is a parameter of type IDoubleArray

Product Availability

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

Description

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.

See Also

ITerrainFieldStatistics Interface