rleDiff-class(Matrix)
rleDiff-class()所属R语言包:Matrix
Class "rleDiff" of rle(diff(.)) Stored Vectors
类RLE的“rleDiff”(差异()。)存储向量
译者:生物统计家园网 机器人LoveR
描述----------Description----------
Class "rleDiff" is for compactly storing long vectors which mainly consist of linear stretches. For such a vector x, diff(x) consists of constant stretches and is hence well compressable via rle().
"rleDiff"类是紧凑存储主要包括线性延伸的向量。对于这样一个向量x,diff(x)组成的不断延伸,因此通过rle()compressable。
类的对象----------Objects from the Class----------
Objects can be created by calls of the form new("rleDiff", ...).
创建对象可以通过电话的形式new("rleDiff", ...)。
Currently experimental, see below.
目前处于试验阶段,见下文。
插槽----------Slots----------
first: A single number (of class "numLike",
first类:单数("numLike"
rle: Object of class "rle", basically a list with components "lengths" and "values", see rle(). As this is used to encode potentially huge index vectors, lengths may be of
rle:,"rle" Object类,基本上是一个list组件"lengths"和"values",看到rle()。由于这是用来编码潜在的巨大的索引向量,lengths可能的
方法----------Methods----------
There is a simple show method only.
仅是一个简单的show方法。
注意----------Note----------
This is currently an experimental auxiliary class for the class abIndex, see there.
这是目前实验类abIndex,看到有辅助类。
参见----------See Also----------
rle, abIndex.
rle,abIndex。
举例----------Examples----------
showClass("rleDiff")
ab <- c(abIseq(2, 100), abIseq(20, -2))
ab@rleD # is "rleDiff"[是“rleDiff”]
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|