FuzzyMSSmall (arcpy.sa)

摘要

通过一个基于平均值和标准差的函数,以隶属度更接近于 1 的较小值定义模糊隶属度。

讨论

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

根据 a * m 的乘积,MS 较小值函数有两个方程。

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

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

结果可能与较小值模糊隶属度函数类似,具体取决于平均值和标准差的乘法器定义方式。

语法

FuzzyMSSmall (meanMultiplier, STDMultiplier)
参数说明数据类型
meanMultiplier

The multiplier for the mean of the input values in the MSLarge function equation.

(默认值为 1)

Double
STDMultiplier

The multiplier for the standard deviation of the input values in the MSLarge function equation.

(默认值为 1)

Double

属性

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

The multiplier for the mean of the input values in the membership function equation.

Double
STDMultiplier
(读写)

The multiplier for the standard deviation of the input values in the membership function equation.

Double

代码实例

FuzzyMSSmall 示例 1(Python 窗口)

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

import arcpy
from arcpy.sa import *
from arcpy import env
env.workspace = "c:/sapyexamples/data"
outFzyMember = FuzzyMembership("as_std", FuzzyMSSmall(1.2, 3.2))
outFzyMember.save("c:/sapyexamples/fzymssml")
FuzzyMSSmall 示例 2(独立脚本)

使用 FuzzyMSSmall 类执行 FuzzyMembership。

# Name: FuzzyMSSmall_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 FuzzyMSSmall algorithm object
meanMultiply = 1.5
stdMultiply = 1
myFuzzyAlgorithm = FuzzyMSSmall(meanMultiply, stdMultiply)

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

# Execute FuzzyMembership
outFuzzyMember = FuzzyMembership(inRaster, myFuzzyAlgorithm)

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

相关主题

5/10/2014