# FuzzyMSSmall (arcpy.sa)

## 讨论

• 如果 x > a * m

`u(x) = (b * s) / (x - (a * m) + (b * s))`

• 其中：

m = 平均数

s = 标准差

a = 平均数的乘法器

b = 标准差的乘法器

ab 乘法器是输入参数。

• 如果 x <= a * m

`u(x) = 0`

## 语法

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 窗口）

``````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（独立脚本）

``````# 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