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

R语言 snow包 snow-timing()函数中文帮助文档(中英文对照)

[复制链接]
发表于 2012-9-30 11:07:01 | 显示全部楼层 |阅读模式
snow-timing(snow)
snow-timing()所属R语言包:snow

                                        Timing SNOW Clusters
                                         定时SNOW聚类

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

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

Experimental functions to collect and display timing data for cluster computations.
实验功能来收集和显示的时间为聚类计算的数据。


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


snow.time(expr)
## S3 method for class 'snowTimingData'
print(x, ...)
## S3 method for class 'snowTimingData'
plot(x, xlab = "Elapsed Time", ylab = "Node",
                              title = "Cluster Usage", ...)



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

参数:expr
expression to evaluate
要计算的表达式


参数:x
timing data object to plot or print
时序数据对象的绘制或打印


参数:xlab
x axis label
X轴标签


参数:ylab
y axis label
y轴的标签


参数:title
plot main title
图主标题


参数:...
additional arguments
额外的参数


Details

详细信息----------Details----------

snow.time collects and returns and returns timing information for cluster usage in evaluating expr. The return value is an object of class snowTimingData; details of the return value are subject to change.  The print method for snowTimingData objects shows the total elapsed time, the total communication time between master and worker nodes, and the compute time on each worker node.  The plot, motivated by the display produced by xpvm, produces a Gantt chart of the computation, with green rectangles representing active computation, blue horizontal lines representing a worker waiting to return a result, and red lines representing master/worker communications.  
snow.time收集和回报和收益评估expr聚类使用的计时信息。如有变更,返回值是一个对象类snowTimingData;细节的返回值。 printsnowTimingData对象的方法显示所经过的总时间,总的通信主及工人的节点,并在每个工作节点的计算时间之间的时间。 plot,出于显示产生的xpvm,生产的甘特图的计算,绿色长方形活跃计算,蓝色水平线代表工人等待返回结果,红色的线代表主/工人通信。


实例----------Examples----------


  ## Not run: [#不运行:]
cl <- makeCluster(2,type="SOCK")
x <- rnorm(1000000)
tm <- snow.time(clusterCall(cl, function(x) for (i in 1:100) sum(x), x))
print(tm)
plot(tm)
stopCluster(cl)
  
## End(Not run)[#(不执行)]

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-6-8 04:17 , Processed in 0.028906 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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