ListHistogrammer
计算列表中的值的柱状图,and returns these in a new list attribute on the feature.
参数
计算柱状图的源列表。
将包含输出柱状图的新列表属性的名称。将对新列表进行排序,使出现次数最多的值位于第一位。
使用说明
If the source list did not have elements,a new list will not be created and this transformer will have made no changes to the feature.
例子
If a feature with this list enters this transformer:
somelist{0}.val = 'apple'
somelist{1}.val = 'donut'
somelist{2}.val = 'aardvark'
somelist{3}.val = 'apple'
someList 4.val='aardvark'
someList 5.val='苹果'
生成的功能将具有以下列表属性:
_histogram{0}.value = 'apple'
_柱状图0。计数=3
_histogram{1}.value = 'aardvark'
_histogram{1}.count = 2
_histogram{2}.value = 'donut'
_柱状图2。计数=1
编辑变压器参数
Using a set of menu options,transformer parameters can be assigned by referencing other elements in the workspace.更高级的功能,such as an advanced editor and an arithmetic editor,也可用于一些变压器。To access a menu of these options,click在适用参数旁边。For more information,看见Transformer Parameter Menu Options.
变压器类别
搜索FME知识中心
在上搜索有关此变压器的示例和信息FME知识中心.