Building_Communities(SamSPECTRAL)
Building_Communities()所属R语言包:SamSPECTRAL
Builds the communities from the set of all data points.
从所有数据点的集合为基础的社区。
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Some sample points are picked up and the points close to each sample point are considered as members of that community.
拿起一些样本点和每个采样点接近的点作为社区成员的考虑。
用法----------Usage----------
Building_Communities(full, m=3000, space.length=1, community.weakness.threshold=1, talk=TRUE, do.sampling=TRUE)
参数----------Arguments----------
参数:full
The matrix containing the coordinates of all data points.
矩阵包含的所有数据点的坐标。
参数:m
Determines an upper bound on the final number of sample points which will be in range m and 2 m
确定样本点最终数目将范围是m2m的上限
参数:space.length
An estimate for the length of a cube that is assumed to contain all data points.
假设一个包含所有数据点的立方体的长度估计。
参数:community.weakness.threshold
The communities with number of members less than this threshold will be ignored. Normally, setting it to 1 is reasonable.
小于这个阈值的成员数量的社区将被忽略。通常情况下,将其设置为1是合理的。
参数:talk
A boolean flag with default value TRUE. Setting it to FALSE will keep running the procedure quite with no messages.
一个布尔标志使用默认值true。设置为false,将继续运行程序相当没有消息。
参数:do.sampling
A boolean flag with default value TRUE. If set to FALSE, the sampling stage will be ignored by picking up all the data points.
一个布尔标志使用默认值true。如果设置为FALSE,拿起所有的数据点采样阶段将被忽略。
值----------Value----------
Returns a society which is a list of communities.
返回的社会,这是一个社区的名单。
作者(S)----------Author(s)----------
Parisa Shooshtari and Habil Zare
参考文献----------References----------
<h3>See Also</h3> <code>SamSPECTRAL</code>
举例----------Examples----------
## Not run: [#无法运行:]
library(SamSPECTRAL)
# Reading data file which has been transformed using log transform[读取数据文件已使用log变换转化]
data(small_data)
full <- small
# Parameters:[参数:]
m <- 3000; ns <- 200; sl <- 3; cwt <-1
# Sample the data and build the communities[样本数据,并建立社区]
society <- Building_Communities(full=full,m=m, space.length=sl, community.weakness.threshold=cwt)
# Ploting the representatives:[作图的代表:]
plot(full[society$representatives,])
## End(Not run)[#结束(不运行)]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|