找回密码
 注册
查看: 506|回复: 0

R语言 GOstats包 triadCensus()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-2-25 20:56:29 | 显示全部楼层 |阅读模式
triadCensus(GOstats)
triadCensus()所属R语言包:GOstats

                                         Triad Functions
                                         黑社会功能

                                         译者:生物统计家园网 机器人LoveR

描述----------Description----------

These functions provide some tools for finding triads in an undirected graph. A triad is a clique of size 3. The function triadCensus returns a list of all triads.
这些功能提供了一些工具寻找一个无向图中的黑社会。黑社会集团是一个大小为3。功能triadCensus返回的所有黑社会的名单。


用法----------Usage----------


triadCensus(graph)
isTriad(x, y, z, elz, ely)
reduce2Degreek(graph, k)
enumPairs(iVec)




参数----------Arguments----------

参数:graph
An instance of the graph class.  
graph类的一个实例。


参数:k
An integer indicating the minimum degree wanted.
想要一个整数,表示最低程度。


参数:x
A node
节点


参数:y
A node
节点


参数:z
A node
节点


参数:elz
The edgelist for z
为的z EdgeList都


参数:ely
The edgelist for y
为的y EdgeList都


参数:iVec
A vector of unique values
唯一值的向量


Details

详情----------Details----------

enumPairs takes a vector as input and returns a list of length choose(length(iVec),2)/2 containing all unordered pairs of elements.
enumPairs作为输入向量,并返回一个长度列表choose(length(iVec),2)/2包含所有无序的元素对。

isTriad takes three nodes as arguments. It is already known that x has edges to both y and z and we want to determine whether these are reciprocated. This is determined by examining elz for both x and y and then examining ely for both x and z.
isTriad需要三个节点作为参数。它是已知的x有边都y和z我们希望,以确定是否这些都是礼尚往来。这是由检查elz都x和y然后检查ely都x和z。

reduce2Degreek is a function that takes an undirected graph as input and removes all nodes of degree less than k. This process is iterated until there are no nodes left (an error is thrown) or all nodes remaining have degree at least k. The resultant subgraph is returned. It is used here because to be in a triad all nodes must have degree 2 or more.
reduce2Degreek是一个函数,作为输入的无向图,并删除所有节点的程度比k。这个过程是迭代,直到有没有离开的节点(抛出一个错误)或所有节点剩余至少k有度。返回结果子。它是用在这里,因为在所有节点都必须有2个或以上程度的黑社会。

triadCensus makes use of the helper functions described above and finds all triads in the graph.
triadCensus使用以上所述的辅助功能,并在图中找到的所有黑社会。


值----------Value----------

A list where each element is a triple indicating the members of the triad. Order is not important and all triads are reported in alphabetic order.
一个列表,其中每个元素是一个三重指示的黑社会成员。顺序并不重要,所有黑社会都在按字母顺序报告。


注意----------Note----------

See the graph package, RBGL and Rgraphviz for more details and
看到图形软件包,更多细节RBGL和Rgraphviz


作者(S)----------Author(s)----------


R. Gentleman



举例----------Examples----------


##---- Should be DIRECTLY executable !! ----[#----应直接执行!! ----]
##-- ==>  Define data, use random,[ -  ==>定义数据,使用随机的,]

转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。


注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|小黑屋|生物统计家园 网站价格

GMT+8, 2025-5-25 04:29 , Processed in 0.031030 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表