Commonest
范例
打开所有单元 关闭所有单元基本范例 (3)
范围 (4)
Commonest[{1, 2, 2, 3, 3, 3, 4}]Commonest[{a, E, Sin[y], E, a, 7}]Commonest[N[{1, 2, 2, 3, 3, 3, 4}]]Commonest[N[{1, 2, 2, 3, 3, 3, 4}, 30]]Commonest[Join[Table[1, {10 ^ 7}], Table[3, {10 ^ 4}], {7, 8}]]Commonest[Join[Table[1, {10 ^ 7}], Table[3, {10 ^ 4}], {7, 8}], 2]data = Quantity[{1, 2, 2, 3, 3, 3, 4}, "Meters"]Commonest[data]应用 (2)
Commonest[RandomInteger[20, 1000]]Map[Commonest, Transpose[RandomInteger[20, {1000, 5}]]]heights = Quantity[{134, 143, 131, 140, 145, 136, 131, 136, 143, 136, 133, 145, 147,
150, 150, 146, 137, 143, 132, 142, 145, 136, 144, 135, 141}, "Centimeters"];ListPlot[heights, Filling -> Axis, AxesLabel -> Automatic]Commonest[heights]mode = %[[1]]ListPlot[{heights, {{0, mode}, {Length[heights], mode}}}, Joined -> {False, True}, Filling -> {1 -> 0}, AxesLabel -> Automatic]属性和关系 (1)
相关指南
-
▪
- 列表中的数学和统计运算 ▪
- 描述性统计分析 ▪
- 离散和整数数据 ▪
- 稳健描述性统计
相关的工作流程
- 分析可计算的数据集
文本
Wolfram Research (2007),Commonest,Wolfram 语言函数,https://reference.wolfram.com/language/ref/Commonest.html (更新于 2015 年).
CMS
Wolfram 语言. 2007. "Commonest." Wolfram 语言与系统参考资料中心. Wolfram Research. 最新版本 2015. https://reference.wolfram.com/language/ref/Commonest.html.
APA
Wolfram 语言. (2007). Commonest. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/Commonest.html 年
BibTeX
@misc{reference.wolfram_2026_commonest, author="Wolfram Research", title="{Commonest}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/Commonest.html}", note=[Accessed: 16-October-2026]}
BibLaTeX
@online{reference.wolfram_2026_commonest, organization={Wolfram Research}, title={Commonest}, year={2015}, url={https://reference.wolfram.com/language/ref/Commonest.html}, note=[Accessed: 16-October-2026]}