scagEdgeWeights(RnavGraph)
scagEdgeWeights()所属R语言包:RnavGraph
Create a from-to edge matrix with the scagnostic weights
创建一个从边缘矩阵的scagnostic权重
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Create a from-to edge matrix with the scagnostic weights.
创建一个从边缘矩阵的scagnostic权重。
用法----------Usage----------
scagEdgeWeights(data,
scags = c("Clumpy", "NotClumpy", "Monotonic", "NotMonotonic",
"Convex", "NotConvex", "Stringy", "NotStringy",
"Skinny", "NotSkinny", "Outlying","NotOutlying",
"Sparse", "NotSparse", "Striated", "NotStriated",
"Skewed", "NotSkewed"),
combineFn = NULL)
参数----------Arguments----------
参数:data
object to calculate scagnostics on: NG_data, a vector, a matrix or a data.frame.
对象来计算scagnostics于:NG_data,一个向量,矩阵或数据框。
参数:scags
Single element or a subset of (with possible a "Not" preceding): <br> "Outlying", "Skewed", "Clumpy", "Sparse", "Striated",<br> "Convex", "Skinny", "Stringy", "Monotonic"
单元素的一个子集(可能是“不”前):<BR>“离岛”,“歪斜”,“块状”,“疏”,“条纹”,参考“凸“,”瘦“,”粘性“,”单调“
参数:combineFn
Must be a function that takes in a vector of length scags and returns a single value. This return value comprises the new weights of the nodes get selected from.
必须是一个函数,需要在的向量长度scags,返回单个值。这个返回值,包括新的权重都被选择的节点。
值----------Value----------
a named list with fromToEdgeMatrix being a matrix and nodeNames being a vector.
命名列表fromToEdgeMatrix矩阵和nodeNames是一个矢量。
(作者)----------Author(s)----------
Adrian Waddell and R. Wayne Oldford
参见----------See Also----------
navGraph, scagNav, scagGraph
navGraph,scagNav,scagGraph
实例----------Examples----------
data(olive)
ng.olive <- ng_data(name = "Olive",
data = olive[,-c(1,2)],
shortnames = c("p1","p2","s","ol","l1","l2","a","e"),
group = as.numeric(olive$Area)+1
)
edgeWts <- scagEdgeWeights(data = ng.olive,
scags = c("Clumpy", "Skinny"),
combineFn = max)
edgeWts$fromToEdgeMatrix[1:3,]
edgeWts <- scagEdgeWeights(data = ng.olive,
scags = c("Clumpy", "Skinny"),
combineFn = function(x){
2*x[1]+3*x[2]
})
edgeWts$fromToEdgeMatrix[1:3,]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|