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

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

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

                                        Registry for seriation methods
                                         注册表系列化方法

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

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

A registry to manage methods for seriation.
注册表管理方法,系列化。


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


list_seriation_methods(kind)
show_seriation_methods(kind)
get_seriation_method(kind, name)
set_seriation_method(kind, name, definition, description = NULL, ...)



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

参数:kind
the data type the method works on. For example, "dist", "matrix" or "array".
的数据类型的方法的工作。例如,"dist","matrix"或"array"。


参数:name
a short name for the method used to refer to the method in seriate().
一个简短的名称的方法,用来指在seriate()的方法。


参数:definition
a function containing the method's code.
一个功能包含方法的代码。


参数:description
a description of the method. For example, a long name.
的方法的描述。例如,一个长文件名。


参数:...
further information that is stored for the method in the  registry.
进一步的信息存储在注册表的方法。


Details

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

list_seriation_method() lists all available methods for a given data type (kind). The result is a vector of character strings with the short names of the methods.
list_seriation_method()列出所有可用的方法对于一个给定的数据类型(kind)。的结果是一个向量的字符的字符串的方法的短名称。

show_seriation_method() shows all available methods including a description.
show_seriation_method()显示所有可用的方法包括描述。

get_seriation_method() returns information (including the implementing function) about a given method in form of an object of class "seriation_method".
get_seriation_method()返回的信息(包括执行功能)对一个给定的方法的对象的类"seriation_method"的形式。

With set_seriation_method() new seriation methods can be added by the user. The implementing function (definition) needs to have the formal arguments x, control, where x is the data object and control contains a list with additional information for the method passed on from seriate().  The implementation has to return  a list of objects which can be coerced into ser_permutation_vector objects (e.g., integer vectors). The elements in the list have to be in corresponding order to the dimensions of x.
用set_seriation_method()新的的系列化方法,可以由用户添加。执行功能(definition)需要有正式的参数x, control,其中x是数据对象和control包含了一系列的附加信息的方法通过从seriate()。实现返回一个列表的对象可以强制转换成ser_permutation_vector对象(例如,整数向量)。列表中的元素都必须在相应的命令的尺寸x。


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


show_seriation_methods("matrix")

list_seriation_methods("matrix")

get_seriation_method("matrix", "BEA")

## define a new method[#定义了一种新方法]

## create a identity function which returns the identity order[#身份创建一个函数,它返回的身份命令]
seriation_method_identity <- function(x, control) {
   lapply(dim(x), seq)
}

## set new method[#设置新方法]
set_seriation_method("matrix", "identity", seriation_method_identity,
    "Identity order")

set_seriation_method("array", "identity", seriation_method_identity,
    "Identity order")

show_seriation_methods("matrix")

##use all criterion methods (including the new one)[#使用所有标准的方法(包括新)]
seriate(matrix(1:12, ncol=3), "identity")

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


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

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-5-21 07:33 , Processed in 0.019492 second(s), 16 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

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