com.supermap.analyst.spatialanalyst
类 InterpolationDensityParameter

java.lang.Object
  继承者 com.supermap.analyst.spatialanalyst.InterpolationParameter
      继承者 com.supermap.analyst.spatialanalyst.InterpolationDensityParameter

public class InterpolationDensityParameter
extends InterpolationParameter

点密度差值(Density)插值参数类,继承自 InterpolationParameter 类。通过该类可以为点密度插值算法提供必要的参数信息。

点密度插值方法,用于表达采样点的密度分布情况。通常包含三个计算步骤:

  1. 计算在搜索范围内每个点到预测点的距离,然后计算距离的倒数 ReciDis:
  2. 分别计算查找范围内所有点到预测点的距离倒数的累加和(Sigma)和查找范围内所有点的Z值与距离倒数的积的累加和(SigmaZ),计算公式如下(其中 k 为查找范围内总的点数):
  3. 计算出预测点的值(栅格值)为:SigmaZ/Sigma。

点密度插值的结果栅格的分辨率设置需要结合点数据集范围大小来取值,一般结果栅格行列值(即结果栅格数据集范围除以分辨率)在 500 以内即可以较好的体现出密度走势。由于点密度插值暂时只支持定长搜索模式,因此搜索半径(SearchRadius)值设置较为重要,此值需要用户根据待插值点数据分布状况和点数据集范围进行设置。如下图所示,为一份二维点数据及对其进行点密度插值的结果。


构造方法摘要
InterpolationDensityParameter()
          构造一个新的 InterpolationDensityParameter 对象。
InterpolationDensityParameter(double resolution, double searchRadius)
          根据指定的参数来构造一个 InterpolationDensityParameter 的新对象。
 
方法摘要
 int getMaxPointCountForInterpolation()
          此类不支持该接口。
 int getMaxPointCountInNode()
          此类不支持该接口。
 InterpolationAlgorithmType getType()
          返回插值算法类型。
 void setMaxPointCountForInterpolation(int value)
          此类不支持该接口。
 void setMaxPointCountInNode(int value)
          此类不支持该接口。
 void setSearchMode(SearchMode searchMode)
          设置查找模式。
 java.lang.String toString()
          返回一个表示 InterpolationDensityParameter 对象的字符串。
 
从类 com.supermap.analyst.spatialanalyst.InterpolationParameter 继承的方法
dispose, getBounds, getExpectedCount, getResolution, getSearchMode, getSearchRadius, setBounds, setExpectedCount, setResolution, setSearchRadius
 
从类 java.lang.Object 继承的方法
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

InterpolationDensityParameter

public InterpolationDensityParameter()
构造一个新的 InterpolationDensityParameter 对象。


InterpolationDensityParameter

public InterpolationDensityParameter(double resolution,
                                     double searchRadius)
根据指定的参数来构造一个 InterpolationDensityParameter 的新对象。

参数:
resolution - 指定的插值运算所获得的栅格数据集的分辨率。
searchRadius - 指定的插值运算时查找参数运算点的查找范围。
方法详细信息

setSearchMode

public void setSearchMode(SearchMode searchMode)
设置查找模式。请参见 SearchMode 类。

重写基类的方法。目前暂时只支持定长查找(即SearchMode#KDTREE_FIXED_RADIUS),设置其它查找模式会抛出异常。

覆盖:
InterpolationParameter 中的 setSearchMode
参数:
searchMode - 查找模式。
另请参见:
SearchMode

toString

public java.lang.String toString()
返回一个表示 InterpolationDensityParameter 对象的字符串。

覆盖:
InterpolationParameter 中的 toString
返回:
一个表示 InterpolationDensityParameter 对象的字符串。

getType

public InterpolationAlgorithmType getType()
返回插值算法类型。

指定者:
InterpolationParameter 中的 getType
返回:
插值算法的类型。
另请参见:
InterpolationAlgorithmType

getMaxPointCountInNode

public int getMaxPointCountInNode()
此类不支持该接口。

覆盖:
InterpolationParameter 中的 getMaxPointCountInNode
返回:
单个块内最多查找点数。

setMaxPointCountInNode

public void setMaxPointCountInNode(int value)
此类不支持该接口。

覆盖:
InterpolationParameter 中的 setMaxPointCountInNode
参数:
value - 单个块内最多查找点数。

getMaxPointCountForInterpolation

public int getMaxPointCountForInterpolation()
此类不支持该接口。

覆盖:
InterpolationParameter 中的 getMaxPointCountForInterpolation
返回:
块查找时,最多参与插值的点数。

setMaxPointCountForInterpolation

public void setMaxPointCountForInterpolation(int value)
此类不支持该接口。

覆盖:
InterpolationParameter 中的 setMaxPointCountForInterpolation
参数:
value - 参与插值的最多点数。