采样器
根据采样类型选择,保留功能的总数或采样的分辨率。丢弃输入特征的其余部分。
This transformer is typically used during testing to reduce data volume by arbitrarily discarding data.
参数
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Skins/Default/Stylesheets/Images/transparent.gif)
When specified, this parameter affects the behavior of the two sampling types. For example, say the Sampler receives a set of 15 features. Using the Group By parameter, the Sampler breaks the features into 3 groups.
- Group 1 has 3 features
- 第2组有5个功能
- 第3组有7个功能
此表显示采样量和类型如何通过结果影响组:
Sampling Amount | Sampling Type | 结果 |
---|---|---|
4. | Every Nth Feature |
|
4. | First N Features |
|
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Skins/Default/Stylesheets/Images/transparent.gif)
确定要保留的功能数量:要么的功能总数,要么是功能的采样。
- 1:没有数据将被丢弃:输入和输出相同的功能将是相同的。
- 0:将丢弃所有输入数据。
例如:
采样率 | Sampling Type | 结果 |
---|---|---|
2 | Every Nth Feature | 每秒都将保留每一秒。 |
10 | First N Features | Only the first 10 features will be kept. All subsequent features will be consumed by the transformer. |
![Closed](http://www.baooytra.com/docs/fme/2017.0/html/FME_Desktop_Documentation/FME_Transformers/Skins/Default/Stylesheets/Images/transparent.gif)
When this parameter is left at the default setting of不,变压器在收到的顺序中使用特征。
将此参数设置为Yesis equivalent to shuffling the input features before they are sampled. The output ports still return features in the order they were received by this transformer. When this parameter isYes,所有功能都在采样器中封锁,直到最后一个功能到达。
Editing Transformer Parameters
Using a set of menu options, transformer parameters can be assigned by referencing other elements in the workspace. More advanced functions, such as an advanced editor and an arithmetic editor, are also available in some transformers. To access a menu of these options, click在适用的参数。更多的备用ion, seeTransformer Parameter Menu Options。
Transformer Categories
搜索FME知识中心
搜索有关此变压器的样本和信息FME知识中心。