ArcGIS for Desktop

  • 文档
  • 合约
  • 支持

  • My Profile
  • 帮助
  • Sign Out
ArcGIS for Desktop

ArcGIS Online

专为贵组织打造的制图平台

ArcGIS for Desktop

全面的专业性 GIS

ArcGIS for Server

面向企业的 GIS

ArcGIS for Developers

用于构建位置感知应用程序的工具

ArcGIS Solutions

适用于行业的免费模板地图和应用程序

ArcGIS Marketplace

获取适用于组织的应用程序和数据

  • 文档
  • 合约
  • 支持
Esri
  • 登录
user
  • 我的个人资料
  • 登出

帮助

  • 主页
  • 入门
  • 制图
  • 分析
  • 管理数据
  • 工具
  • 更多...

FuzzyLinear

需要 Spatial Analyst 许可。

  • 摘要
  • 讨论
  • 语法
  • 属性
  • 代码实例

摘要

通过用户指定的最小值(隶属度为 0)到用户定义的最大值(分配的隶属度为 1)之间的线性变换来定义模糊隶属度函数。

讨论

使用 FuzzyLinear 对象的工具:模糊隶属度。

线性函数的适用条件为:在正斜率情况下,较小值优先于较大值呈线性增加,而对于负斜率情况,则与此相反。

线性函数不使用负数。

FuzzyLinear 图
模糊线性隶属度函数的变化。

语法

 FuzzyLinear (minimum, maximum)
参数说明数据类型
minimum

隶属度将为 0 的值。如果 minimum 小于 maximum,则线性函数的斜率为正。如果 minimum 大于 maximum,则线性函数的斜率为负。

(默认值为 Minimum of the input)

Double
maximum

隶属度将为 1 的值。如果 maximum 大于 minimum,则线性函数的斜率为正。如果 maximum 小于 minimum,则线性函数的斜率为负。

(默认值为 Maximum of the input)

Double

属性

属性说明数据类型
minimum
(读写)

The value that will have a membership of 0. If the minimum value is less than the maximum, the linear function will have a positive slope. If the minimum value is greater than the maximum, the slope will have a negative slope.

Double
maximum
(读写)

The value that will have a membership of 1. If the maximum value is greater than the minimum, the linear function will have a positive slope. If the maximum value is less than the minimum, the slope will have a negative slope.

Double

代码实例

FuzzyLinear 示例 1(Python 窗口)

演示如何在 Python 窗口下创建 FuzzyLinear 类,并通过 FuzzyMembership 工具使用该类。

import arcpy
from arcpy.sa import *
from arcpy import env
env.workspace = "c:/sapyexamples/data"
outFzyMember = FuzzyMembership("as_std", FuzzyLinear(12, 16))
outFzyMember.save("c:/sapyexamples/fzyline")
FuzzyLinear 示例 2(独立脚本)

使用 FuzzyLinear 类执行 FuzzyMembership。

# Name: FuzzyLinear_Ex_02.py
# Description: Scales input raster data into values ranging from zero to one
#     indicating the strength of a membership in a set. 
# Requirements: Spatial Analyst Extension

# Import system modules
import arcpy
from arcpy import env
from arcpy.sa import *

# Set environment settings
env.workspace = "C:/sapyexamples/data"

# Set local variables
inRaster = "as_std"

# Create the FuzzyLinear algorithm object
min = 19
max = 22
myFuzzyAlgorithm = FuzzyLinear(min, max)

# Check out the ArcGIS Spatial Analyst extension license
arcpy.CheckOutExtension("Spatial")

# Execute FuzzyMembership
outFuzzyMember = FuzzyMembership(inRaster, myFuzzyAlgorithm)

# Save the output
outFuzzyMember.save("c:/sapyexamples/fzyline2")

相关主题

  • Spatial Analyst 类概述
  • 模糊类概述
  • 将模糊逻辑应用于叠加栅格
  • 模糊隶属度的工作原理
  • 模糊叠加的工作原理
有关此主题的反馈?

ArcGIS for Desktop

  • 主页
  • 文档
  • 合约
  • 支持

ArcGIS 平台

  • ArcGIS Online
  • ArcGIS for Desktop
  • ArcGIS for Server
  • ArcGIS for Developers
  • ArcGIS Solutions
  • ArcGIS Marketplace

关于 Esri

  • 关于我们
  • 招贤纳士
  • 内部人员博客
  • 用户大会
  • 开发者峰会
Esri
© Copyright 2016 Environmental Systems Research Institute, Inc. | 隐私政策 | 法律声明