This document is archived and information here might be outdated. Recommended version. |
Returns the unique values.
[Visual Basic .NET] Public Function GetUniqueValuesAsLong ( _ ) As ILongArray
[C#] public ILongArray GetUniqueValuesAsLong ( );
[C++]
HRESULT GetUniqueValuesAsLong(
void
);
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.