本文整理汇总了Python中SSUtilities.setRandomSeed方法的典型用法代码示例。如果您正苦于以下问题:Python SSUtilities.setRandomSeed方法的具体用法?Python SSUtilities.setRandomSeed怎么用?Python SSUtilities.setRandomSeed使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SSUtilities
的用法示例。
在下文中一共展示了SSUtilities.setRandomSeed方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: import SSUtilities [as 别名]
# 或者: from SSUtilities import setRandomSeed [as 别名]
def __init__(self, inputFC, outputTable = None, nIncrements = 10,
permutations = 0, weightField = None, begDist = None,
dIncrement = None, edgeCorrection = None,
studyAreaMethod = 0, studyAreaFC = None):
#### Set Initial Attributes ####
UTILS.assignClassAttr(self, locals())
#### Create a Spatial Stats Data Object (SSDO) ####
self.ssdo = SSDO.SSDataObject(inputFC, useChordal = False)
#### Must Be Projected For Now ####
if self.ssdo.spatialRefType == "GEOGRAPHIC":
ARCPY.AddIDMessage("ERROR", 1606)
raise SystemExit()
#### Edge Correction Bools ####
self.simulate = self.edgeCorrection == "Simulate"
self.ripley = self.edgeCorrection == "Ripley"
self.reduce = self.edgeCorrection == "Reduce"
self.noEdge = self.edgeCorrection == None
#### Set Seed if Env Var Given ####
if self.permutations:
UTILS.setRandomSeed()
#### Initialize Data ####
self.initialize()
#### Get Near Info and Remove Outside Points ####
self.setOriginalTable()
#### Choose Weighted or Unweighted Version ####
if self.weightField:
self.weightedCalc()
else:
self.unweightedCalc()
#### Clean Up ####
self.cleanUp()