Downsample-class(Streamer)
Downsample-class()所属R语言包:Streamer
Class "Downsample"
类“缩减像素采样”
译者:生物统计家园网 机器人LoveR
描述----------Description----------
A Consumer-class to select records with fixed probability, returning a yield of fixed size. Successive calls to yield result in sampling of subsequent records in the stream, until the stream is exhausted. Users interact with this class through the constructor Downsample and methods yield, reset, and stream.
一个Consumer一流的具有固定的概率选择的记录,返回一个固定大小的产量。 yield流中的后续记录的抽样结果,连续呼叫,直到耗尽流。用户交互通过这个类的构造Downsample和方法yield,reset,stream。
用法----------Usage----------
Downsample(probability=0.1, ..., yieldSize=1e6, verbose=FALSE)
参数----------Arguments----------
参数:probability
A numeric(1) between 0, 1 indicating the probability with which a record should be retained.
一个numeric(1)0之间,1表示应保留其中的一个记录的概率。
参数:...
Additional arguments, passed to the $new method of the underlying reference class. Currently unused.
额外的参数传递$new底层引用类的方法。目前未使用。
参数:yieldSize
A integer(1) indicating the number of records to yield.
一个integer(1)指示产生的记录数量。
参数:verbose
logical(1) indicating whether class methods should report to the user.
logical(1)类的方法是否应该报告给用户。
领域----------Fields----------
inputPipe: Object of class ANY. The component
inputPipe类ANY的对象。该组件
probability: Object of class numeric. The
probability类numeric的对象。 “
yieldSize: Object of class integer storing the number of records to produced each time yield
yieldSize:Object类的integer存储的记录数产生每次yield
.buffer: Object of class ANY, used internally
.buffer:Object类的ANY,内部使用
verbose: Object of class logical. Display
verbose类logical的对象。显示
基于类的方法----------Class-Based Methods----------
verbose):</dt> Initialize the instance.
详细)</代码>:</ DT>初始化实例。
probability: The probability with which a record
probability:概率与创纪录
yieldSize: The number of records to return when
yieldSize:返回的记录数
...: Additional arguments, currently ignored.
...:额外的参数,目前被忽略。
verbose: Display method invokation messages to the
verbose:显示方法invokation消息
reset(): Reset sample buffer and delegate reset
reset():复位样品缓冲液和委托reset
yield(): Continually invoke yield on inputPipe, accumulating a random sample of yieldSize records until the yield of inputPipe has length 0. The result is a list of
yield():不断调用yieldinputPipe,积累了yieldSize记录的随机抽样,直到的yield长度为0 inputPipe。“其结果是一个list
作者(S)----------Author(s)----------
Martin Morgan <a href="mtmorgan@fhcrc.org">mtmorgan@fhcrc.org</a>
参见----------See Also----------
stream
stream
举例----------Examples----------
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|