|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |
java.lang.Object com.supermap.analyst.spatialanalyst.InterpolationParameter com.supermap.analyst.spatialanalyst.InterpolationRBFParameter
public class InterpolationRBFParameter
径向基函数 RBF(Radial Basis Function)插值法(也叫样条插值)参数类,继承自 InterpolationParameter
类。该类为 RBF 插值算法提供必要的参数信息,继承自 InterpolationParameter
类。样条插值提供了设置障碍数据集的方法,设置setBarrierDataset即可。
public void interpolationRBF() { //返回用来进行插值分析的点数据集 Workspace workspace = new Workspace(); DatasourceConnectionInfo datasourceConnectionInfo = new DatasourceConnectionInfo("G:\\Data\\ElevationPoints.udb", "ElevationPoints", ""); Datasource targetDatasource = workspace.getDatasources().open(datasourceConnectionInfo); DatasetVector datasetElevPoints = (DatasetVector)targetDatasource.getDatasets().get("elevationpoints"); //返回一个合法的名称作为结果数据集的的名称 String resultDatasetName = targetDatasource.getDatasets().getAvailableDatasetName("resultDatasetGrid"); //设置径向基函数RBF插法参数 InterpolationRBFParameter interpolationMethodRBFParam = new InterpolationRBFParameter(); interpolationMethodRBFParam.setExpectedCount( 5); interpolationMethodRBFParam.setBounds ( datasetElevPoints.getBounds()); interpolationMethodRBFParam.setResolution ( 285); interpolationMethodRBFParam.setSearchMode ( SearchMode.KDTREE_FIXED_COUNT); //调用插值分析类的插值分析方法实现对点数据集的插值,并返回分析结果 DatasetGrid resultInterpolationGrid = Interpolator.interpolate(interpolationMethodRBFParam, datasetElevPoints, "ELEV", 0.7, targetDatasource, resultDatasetName, PixelFormat.SINGLE); //释放工作空间占有的资源 workspace.dispose(); }
构造方法摘要 | |
---|---|
InterpolationRBFParameter()
构造一个新的 InterpolationRBFParameter 对象。 |
|
InterpolationRBFParameter(DatasetVector getBarrierDataset)
根据指定的参数构造一个 InterpolationRBFParameter 的新对象。 |
|
InterpolationRBFParameter(double tension,
double smooth,
double resolution)
根据指定的参数构造一个 InterpolationRBFParameter 的新对象。 |
|
InterpolationRBFParameter(double tension,
double smooth,
double resolution,
SearchMode mode,
double searchRadius,
int expectedCount)
根据指定的参数构造一个 InterpolationRBFParameter 的新对象。 |
方法摘要 | |
---|---|
double |
getSmooth()
返回光滑系数,值域为 [0,1]。 |
double |
getTension()
返回张力系数。 |
InterpolationAlgorithmType |
getType()
返回插值算法类型。 |
void |
setBarrierDataset(DatasetVector barrierDataset)
设置障碍线数据集。 |
void |
setSmooth(double value)
设置光滑系数,值域为 [0,1]。 |
void |
setTension(double value)
设置张力系数。 |
java.lang.String |
toString()
返回一个表示 InterpolationRBFParameter 对象的字符串。 |
从类 com.supermap.analyst.spatialanalyst.InterpolationParameter 继承的方法 |
---|
dispose, getBounds, getExpectedCount, getMaxPointCountForInterpolation, getMaxPointCountInNode, getResolution, getSearchMode, getSearchRadius, setBounds, setExpectedCount, setMaxPointCountForInterpolation, setMaxPointCountInNode, setResolution, setSearchMode, setSearchRadius |
从类 java.lang.Object 继承的方法 |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
构造方法详细信息 |
---|
public InterpolationRBFParameter()
public InterpolationRBFParameter(double tension, double smooth, double resolution)
tension
- 指定的张力系数。smooth
- 指定的光滑系数。resolution
- 指定的插值运算时使用的分辨率。public InterpolationRBFParameter(double tension, double smooth, double resolution, SearchMode mode, double searchRadius, int expectedCount)
tension
- 指定的张力系数。smooth
- 指定的光滑系数。resolution
- 指定的插值运算时使用的分辨率。mode
- 指定的插值运算时使用的查找方式。searchRadius
- 指定的插值运算时使用的查找的范围。expectedCount
- 指定的插值运算时待查找的点数。public InterpolationRBFParameter(DatasetVector getBarrierDataset)
BarrierDataset
- 指定的障碍线数据集方法详细信息 |
---|
public double getTension()
public void setTension(double value)
value
- 张力系数。public double getSmooth()
public void setSmooth(double value)
value
- 光滑系数。public java.lang.String toString()
InterpolationParameter
中的 toString
public InterpolationAlgorithmType getType()
InterpolationParameter
中的 getType
InterpolationAlgorithmType
public void setBarrierDataset(DatasetVector barrierDataset)
value
- 障碍线数据集。
|
|||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 |