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

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

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

                                        Repairing a Cluster
                                         修复一个聚类

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

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

Functions to add, remove and restart nodes of a snowFT cluster.
功能添加,删除和重新启动节点的snowFT聚类。


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


addtoCluster(cl, spec, ..., options = defaultClusterOptions)
removefromCluster(cl, nodes, ft_verbose = FALSE)
repairCluster(cl, nodes, ..., options = defaultClusterOptions)



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

参数:spec
Cluster specification. Using PVM, it is the number of additional nodes to create.
聚类规范。使用PVM,这是额外的节点来创建。


参数:cl
Cluster object.
聚类对象。


参数:nodes
Indices of nodes.
指数的节点。


参数:options
Cluster options object.
聚类选项反对。


参数:ft_verbose
If TRUE, debugging messages are sent to standard output.
如果是TRUE,调试信息发送到标准输出。


参数:...
Cluster option specifications.
聚类选项规格。


Details

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

addtoCluster adds new nodes to cluster cl. For "PVM" cluster the spec argument should be an integer specifying the number of nodes to create.
addtoCluster增加了新节点聚类cl的的。 "PVM"聚类spec参数必须是一个整数,指定要创建的节点的数量。

removefromCluster removes nodes given by indices nodes from cluster cl.
removefromCluster指数nodes聚类的cl移除节点。

repairCluster replaces nodes (given by indices nodes) by new created nodes and loads snowFT on the new nodes.
repairCluster替换节点(由指数nodes)新创建的新节点上的节点和负载snowFT的。

Cluster options used in  addtoCluster and repairCluster should be the same as used for creating the cluster cl (see makeClusterFT).
聚类选项用于addtoCluster和repairCluster应该是相同的,用于创建聚类cl(见makeClusterFT)。


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

All three functions return the updated cluster object.
所有这三个函数返回的是最新的聚类对象。


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


Hana Sevcikova



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


  ## Not run: [#不运行:]
# create a cluster of size five[创建一个聚类的大小为5]
cl <- makeClusterFT(5)
clusterApply(cl, 1:5, get("+"), 3)
# add three nodes [加入三个节点]
cl <- addtoCluster(cl,3)
printClusterInfo(cl)
# remove nodes 3 and 7[删除节点3和7]
cl <- removefromCluster(cl, c(3, 7), ft_verbose=TRUE)
# check for failures[检查故障]
fail<-findFailedNodes(cl)
cl<-repairCluster(cl,fail[,1])
# stop cluster[停止聚类]
stopCluster(cl)

## End(Not run)[#(不执行)]

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


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

使用道具 举报

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

本版积分规则

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

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

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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