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
  • 我的个人资料
  • 登出

帮助

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

FuzzySmall

需要 Spatial Analyst 许可。

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

摘要

以隶属度更接近于 1 的较小输入值定义模糊隶属度函数。通过一个用户定义的中点(分配的隶属度为 0.5)和定义的散度来定义函数。

讨论

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

FuzzySmall 函数的方程为:

模糊较小值函数方程

方程的输入为 f1(散度 (spread))和 f2(中点 (midpoint))。增大散度会导致模糊隶属度曲线变得陡峭。

当较小的输入值具有较高的隶属度时,较小值函数十分有用。

输入值可以为整型值或浮点型正值。

FuzzySmall 图
模糊较小值隶属度函数的变化。

语法

 FuzzySmall (midpoint, spread)
参数说明数据类型
midpoint

The user-defined value with a fuzzy membership of 0.5.

The default is the midpoint of the range of values of the input raster.

Double
spread

Defines the spread of the Small function. The spread generally ranges from 1 to 10, with the larger the value results in a steeper distribution from the midpoint.

(默认值为 5)

Double

属性

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

定义隶属度函数中点的用户定义值。

Double
spread
(读写)

Defines the spread of the membership function. The larger the value results in a steeper distribution from the midpoint.

Double

代码实例

FuzzySmall 示例 1(Python 窗口)

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

import arcpy
from arcpy.sa import *
from arcpy import env
env.workspace = "c:/sapyexamples/data"
outFzyMember = FuzzyMembership("as_std", FuzzySmall(19, 8))
outFzyMember.save("c:/sapyexamples/fzysml")
FuzzySmall 示例 2(独立脚本)

使用 FuzzySmall 类执行 FuzzyMembership。

# Name: FuzzySmall_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 FuzzySmall algorithm object
midpoint = 12
spread = 8
myFuzzyAlgorithm = FuzzySmall(midpoint, spread)

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

# Execute FuzzyMembership
outFuzzyMember = FuzzyMembership(inRaster, myFuzzyAlgorithm)

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

相关主题

  • 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. | 隐私政策 | 法律声明