closure(sets)
closure()所属R语言包:sets
Closure and reduction
封闭性和还原性
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Closure and reduction of (g)sets.
(g)列出的关闭和减少。
用法----------Usage----------
## S3 method for class 'set'
closure(x, operation = c("union", "intersection"), ...)
binary_closure(x, operation = c("union", "intersection"))
## S3 method for class 'set'
reduction(x, operation = c("union", "intersection"), ...)
binary_reduction(x, operation = c("union", "intersection"))
参数----------Arguments----------
参数:x
For binary_closure and binary_reduction: a binary matrix. A set of (g)sets otherwise.
binary_closure和binary_reduction:二进制矩阵。 (g)的设置,否则一组。
参数:operation
The set operation under which the closure or reduction shall be computed.
设置的操作下,关闭或减少的规定计算。
参数:...
Currently not used.
目前没有使用。
Details
详细信息----------Details----------
The closure of a set S under some operation OP contains all elements of S, and the results of OP applied to all element pairs of S.
封闭的一组S在一些操作OP下包含所有元素S,并将结果的OP施加到所有的元素对S。
The reduction of a set S under some operation OP is the minimal subset of S having the same closure than S under OP.
减少一组S下一些操作OP是最小的子集S具有相同的关闭比S下OP。
Note that the closure and reduction methods for sets are currently only implemented for sets of (g)sets (families) and will give an error for other cases.
请注意,关闭和缩小的方法为集合目前只实施套(G)集(家庭),其他情况下会给出一个错误。
binary_closure and binary_reduction interface efficient C code for computing closures and reductions of binary patterns. They are used by the high-level methods if x contains only objects of class sets.
binary_closure和binary_reduction接口有效的C代码的二进制模式计算的关闭和减少。如果x只包含对象的类sets他们所使用的高层次的方法。
值----------Value----------
An object of same type than x.
比同类型的对象x。
(作者)----------Author(s)----------
The C code for binary closures is provided by Christian Buchta.
参见----------See Also----------
set, gset.
set,gset。
实例----------Examples----------
## ordinary set[#普通集]
s <- set(set(1),set(2),set(3))
(cl <- closure(s))
(re <- reduction(cl))
stopifnot(s == re)
(cl <- closure(s, "intersection"))
(re <- reduction(cl, "intersection"))
stopifnot(s == re)
## multi set[#多集]
s <- set(gset(1,1),gset(2,2),gset(3,3))
(cl <- closure(s))
(re <- reduction(cl))
stopifnot(s == re)
## fuzzy set[#模糊集]
s <- set(gset(1,1/3),gset(2,2/3),gset(3,3/3))
(cl <- closure(s))
(re <- reduction(cl))
stopifnot(s == re)
## fuzzy multiset[#模糊多重集]
s <- set(gset(1,list(set(1,0.8))), gset(2, list(gset(1,3))), gset(3,0.3))
(cl <- closure(s))
(re <- reduction(cl))
stopifnot(s == re)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|