com.supermap.analyst.spatialanalyst
类 InterpolationDensityParameter
- java.lang.Object
-
- com.supermap.data.InternalHandle
-
- com.supermap.data.InternalHandleDisposable
-
- com.supermap.analyst.spatialanalyst.InterpolationParameter
-
- com.supermap.analyst.spatialanalyst.InterpolationDensityParameter
-
- 所有已实现的接口:
- IDisposable
public class InterpolationDensityParameter extends InterpolationParameter
点密度差值(Density)插值参数类,继承自InterpolationParameter
类。通过该类可以为点密度插值算法提供必要的参数信息。点密度插值方法,用于表达采样点的密度分布情况。通常包含三个计算步骤:
- 计算在搜索范围内每个点到预测点的距离,然后计算距离的倒数 ReciDis:
- 分别计算查找范围内所有点到预测点的距离倒数的累加和(Sigma)和查找范围内所有点的Z值与距离倒数的积的累加和(SigmaZ),计算公式如下(其中 k 为查找范围内总的点数):
- 计算出预测点的值(栅格值)为:SigmaZ/Sigma。
点密度插值的结果栅格的分辨率设置需要结合点数据集范围大小来取值,一般结果栅格行列值(即结果栅格数据集范围除以分辨率)在 500 以内即可以较好的体现出密度走势。由于点密度插值暂时只支持定长搜索模式,因此搜索半径(SearchRadius)值设置较为重要,此值需要用户根据待插值点数据分布状况和点数据集范围进行设置。如下图所示,为一份二维点数据及对其进行点密度插值的结果。
-
-
构造器概要
构造器 构造器和说明 InterpolationDensityParameter()
构造一个新的 InterpolationDensityParameter 对象。InterpolationDensityParameter(double resolution, double searchRadius)
根据指定的参数来构造一个 InterpolationDensityParameter 的新对象。
-
方法概要
所有方法 实例方法 具体方法 限定符和类型 方法和说明 InterpolationAlgorithmType
getType()
返回插值算法类型。void
setSearchMode(SearchMode searchMode)
设置查找模式。String
toString()
返回一个表示 InterpolationDensityParameter 对象的字符串。-
从类继承的方法 com.supermap.analyst.spatialanalyst.InterpolationParameter
dispose, getBounds, getExpectedCount, getMaxPointCountForInterpolation, getMaxPointCountInNode, getResolution, getSearchMode, getSearchRadius, setBounds, setExpectedCount, setMaxPointCountForInterpolation, setMaxPointCountInNode, setResolution, setSearchRadius
-
-
-
-
构造器详细资料
-
InterpolationDensityParameter
public InterpolationDensityParameter()
构造一个新的 InterpolationDensityParameter 对象。
-
InterpolationDensityParameter
public InterpolationDensityParameter(double resolution, double searchRadius)
根据指定的参数来构造一个 InterpolationDensityParameter 的新对象。- 参数:
resolution
- 指定的插值运算所获得的栅格数据集的分辨率。searchRadius
- 指定的插值运算时查找参数运算点的查找范围。
-
-
方法详细资料
-
getType
public InterpolationAlgorithmType getType()
返回插值算法类型。- 指定者:
getType
在类中InterpolationParameter
- 返回:
- 插值算法的类型。
- 另请参阅:
InterpolationAlgorithmType
-
setSearchMode
public void setSearchMode(SearchMode searchMode)
设置查找模式。请参见SearchMode
类。重写基类的方法。目前暂时只支持定长查找(即
SearchMode#KDTREE_FIXED_RADIUS
),设置其它查找模式会抛出异常。- 覆盖:
setSearchMode
在类中InterpolationParameter
- 参数:
searchMode
- 查找模式。- 另请参阅:
SearchMode
-
toString
public String toString()
返回一个表示 InterpolationDensityParameter 对象的字符串。- 覆盖:
toString
在类中InterpolationParameter
- 返回:
- 一个表示 InterpolationDensityParameter 对象的字符串。
-
-
Copyright © 2021–2024 SuperMap. All rights reserved.