com.supermap.analyst.spatialanalyst
类 GridHistogram
- java.lang.Object
-
- com.supermap.data.InternalHandle
-
- com.supermap.analyst.spatialanalyst.GridHistogram
-
public class GridHistogram extends com.supermap.data.InternalHandle
栅格直方图类。该类用于获取栅格直方图(createHistogram
方法)的结果,还可以重新指定直方图横轴上的组数。
-
-
方法概要
所有方法 静态方法 实例方法 具体方法 限定符和类型 方法和说明 void
dispose()
释放 GridHistogram 对象所占用的资源。int[]
getFrequencies()
返回栅格直方图每个组的频数。int
getGroupCount()
返回栅格直方图横轴上的组数。static long
getHandle(com.supermap.data.InternalHandle obj)
HistogramSegmentInfo[]
getSegmentInfos()
返回栅格直方图每个组的区间信息。void
setGroupCount(int count)
设置栅格直方图横轴上的组数。static void
setHandle(com.supermap.data.InternalHandle obj, long handle)
-
-
-
方法详细资料
-
getGroupCount
public int getGroupCount()
返回栅格直方图横轴上的组数。- 返回:
- 栅格直方图横轴上的组数。
-
setGroupCount
public void setGroupCount(int count)
设置栅格直方图横轴上的组数。必须大于 0。- 参数:
count
- 栅格直方图横轴上的组数。- 抛出:
IllegalArgumentException
- 如果指定为 0 或负数
-
getFrequencies
public int[] getFrequencies()
返回栅格直方图每个组的频数。直方图的每个组都对应了一个栅格值范围,值在这个范围内的所有单元格的个数即为该组的频数。- 返回:
- 栅格直方图的每个组的频数。
-
getSegmentInfos
public HistogramSegmentInfo[] getSegmentInfos()
返回栅格直方图每个组的区间信息。- 返回:
- 栅格直方图每个组的区间信息。
-
dispose
public void dispose()
释放 GridHistogram 对象所占用的资源。
-
getHandle
public static long getHandle(com.supermap.data.InternalHandle obj)
-
setHandle
public static void setHandle(com.supermap.data.InternalHandle obj, long handle)
-
-
Copyright © 2021–2024 SuperMap. All rights reserved.