spatgraphs-weight(spatgraphs)
spatgraphs-weight()所属R语言包:spatgraphs
Weight edges
重量边缘
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Weight edges with a given function of node-node Euclidian distances.
重量边缘与给定函数的节点,节点的欧几里得距离。
用法----------Usage----------
weight.sg(x, pp, f=function(x) exp(-x^2/scale), scale=1, ...)
sg2wadj(x)
参数----------Arguments----------
参数:x
Graph.
图表。
参数:pp
Point pattern.
点模式。
参数:f
R-function for weight computation; a function of distance.
权重计算的R-函数的距离的函数。
参数:scale
Scaling factor used in (possibly) in f.
缩放因素(可能)在f。
参数:...
Further parameters (ignored at the moment.)
其他参数(忽略的时刻。)
Details
详细信息----------Details----------
值----------Value----------
returns the graph x with additional compontent $weights that contains the weights for edges listed in $edges. For example, if x$edges[[1]] is c(2,3), and x$weights is c(1, 0.5), then the weight of edge 1->2 is 1 and edge 1->3 is 0.5.
图x返回额外compontent元的权重,其中包含的边的权重$边缘中列出。例如,如果x $边缘[[1]]为c(2,3),和×$权重是c(1,0.5),然后边缘1的重量 - >图2是1和边缘1 - >图3是0.5。
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|