abIndex-class(Matrix)
abIndex-class()所属R语言包:Matrix
Class "abIndex" of Abstract Index Vectors
摘要索引向量类“abIndex”
译者:生物统计家园网 机器人LoveR
描述----------Description----------
The "abIndex" class, short for “Abstract Index Vector”, is used for dealing with large index vectors more efficiently, than using integer (or numeric) vectors of the kind 2:1000000 or c(0:1e5, 1000:1e6).
"abIndex"class,“摘要指数矢量”,用于更有效地处理大量的索引向量比使用整数(或numeric)的一种向量,<X >或2:1000000。
Note that the current implementation details are subject to change, and if you consider working with these classes, please contact the package maintainers (packageDescription("Matrix")$Maintainer).
请注意,目前的实施细则如有更改,如果你认为这些类的工作,请联络软件包维护者(packageDescription("Matrix")$Maintainer)。
类的对象----------Objects from the Class----------
Objects can be created by calls of the form new("abIndex", ...), but more easily and typically either by as(x, "abIndex") where x is an integer (valued) vector, or directly by abIseq() and combination c(...) of such.
可以创建对象的形式new("abIndex", ...),但更容易和as(x, "abIndex")x是一个整数(值)的向量,或直接由abIseq(),通常要么电话结合c(...)等。
插槽----------Slots----------
kind: a character string, one of ("int32", "double", "rleDiff"), denoting the
kind:character字符串,("int32", "double", "rleDiff"),表示
x: Object of class "numLike"; is used (i.e., not of length 0) only iff the object is not
x:Object类的"numLike";使用(即不长0)只IFF的对象是不
rleD: object of class "rleDiff",
rleD:类对象"rleDiff",
方法----------Methods----------
as.numeric, as.integer, as.vector signature(x = "abIndex"): ...
as.numeric,as.integer,as.vectorsignature(x = "abIndex")...
[ signature(x = "abIndex", i = "index", j = "ANY", drop = "ANY"): ...
[signature(x = "abIndex", i = "index", j = "ANY", drop = "ANY")...
coerce signature(from = "numeric", to = "abIndex"): ...
要挟signature(from = "numeric", to = "abIndex")...
coerce signature(from = "abIndex", to = "numeric"): ...
要挟signature(from = "abIndex", to = "numeric")...
coerce signature(from = "abIndex", to = "integer"): ...
要挟signature(from = "abIndex", to = "integer")...
length signature(x = "abIndex"): ...
长度signature(x = "abIndex"):...
Ops signature(e1 = "numeric", e2 = "abIndex"): These and the following arithmetic and logic operations are not yet implemented; see Ops for a
OPSsignature(e1 = "numeric", e2 = "abIndex"):这和下面的算术和逻辑运算尚未实施;看到Ops为
Ops signature(e1 = "abIndex", e2 = "abIndex"): ...
OPSsignature(e1 = "abIndex", e2 = "abIndex")...
Ops signature(e1 = "abIndex", e2 = "numeric"): ...
OPSsignature(e1 = "abIndex", e2 = "numeric")...
Summary signature(x = "abIndex"): ...
摘要signature(x = "abIndex"):...
show ("abIndex"): simple show method,
显示("abIndex"):简单的show方法,
is.na ("abIndex"): works analogously to regular vectors.
is.na("abIndex")“:工作方式类似于常规向量。
注意----------Note----------
This is currently experimental and not yet used for our own code. Please contact us (packageDescription("Matrix")$Maintainer), if you plan to make use of this class.
这是目前实验和尚未使用我们自己的代码。请与我们联系(packageDescription("Matrix")$Maintainer),如果你打算使用这个类。
Partly builds on ideas and code from Jens Oehlschlaegel, as implemented (around 2008, in the GPL'ed part of) package ff.
部分基础上的想法和从延Oehlschlaegel代码,作为实施(2008年左右,在GPL的部分)包ff。
参见----------See Also----------
rle (base) which is used here; numeric
rle(base),这是用在这里,“numeric
举例----------Examples----------
showClass("abIndex")
ii <- c(-3:40, 20:70)
str(ai <- as(ii, "abIndex"))# note[注意]
ai # -> show() method[ - >显示()方法]
stopifnot(identical(-3:20,
as(abIseq1(-3,20), "vector")))
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|