BinLists
更多信息
- BinLists 会去掉值与实数不一致的元素.
- 可以给出以下箱宽规格 binspec:
-
dx 宽度为 dx 的分箱 » {xmin,xmax,dx} 从 xmin 到 xmax 的区间内宽度为 dx 的分箱 » {{b1,b2,…}} 区间 [b1,b2), [b2,b3), … » xbins,ybins,… 多变量 data 的分箱规格可理解为 {{x1,y1,…},{x2,y2, …},…} » - BinCounts[data,dx] 使箱边界为 dx 的整数倍数,第一个箱始于 Ceiling[Min[data]-dx,dx],最后一个箱结束于 Floor[Max[data]+dx,dx] 处.
-
- BinLists[data] 等价于 BinLists[data,1].
- 在 BinLists[data,{xmin,xmax,dx}] 中,当元素的值满足
时,会被放入分箱 i 中. -
- BinLists[data,{xmin,xmax}] 等价于 BinLists[data,{xmin,xmax,1}].
- 在 BinLists[data,{{b1,b2,…}}] 中,满足
的元素置于箱 i 中. -
- 在 BinLists[data,{{b1,b2,…}}] 的形式下,各结尾处的 bi 可以是 -Infinity 和 +Infinity.
- 如果 bi 没有形成递增序列,它们由 BinLists 自动排序.
- 如果 data 由长度为 n 的子列表构成,则必须给出 n 个箱的指定,BinLists[data,…] 产生一个深度 n 的列表阵列.
- 在每个箱中,元素出现的顺序与原始数据中相同.
- data 可以有以下形式和解释:
-
{x1,x2,…} 实数和量的列表 » {{x1,y1,…},{x2,y2,…},…} 同维度向量列表 » SparseArray 等价于 Normal[data] 的数组 » QuantityArray 列兼容量的数组 » TimeSeries, TemporalData,… 值的向量或数组(时间戳忽略不计) » - 输入元素 xi 的标签 inds 可以用以下格式给出: »
-
{x1,x2,…} 使用 xi 自身(默认无标签) {x1,x2,…}Automatic 使用整数标签 {x1,x2,…}{v1,v2,…} 所有元素和所有标签之间的规则 {x1v1,x2v2,…} 元素 xi 与其标签 vi 之间的规则列表
参见
BinCounts Cases Union Sort Gather GatherBy Split FindDivisions
Function Repository: BinListsBy HextileBins TileBins
文本
Wolfram Research (2007),BinLists,Wolfram 语言函数,https://reference.wolfram.com/language/ref/BinLists.html (更新于 2024 年).
CMS
Wolfram 语言. 2007. "BinLists." Wolfram 语言与系统参考资料中心. Wolfram Research. 最新版本 2024. https://reference.wolfram.com/language/ref/BinLists.html.
APA
Wolfram 语言. (2007). BinLists. Wolfram 语言与系统参考资料中心. 追溯自 https://reference.wolfram.com/language/ref/BinLists.html 年
BibTeX
@misc{reference.wolfram_2025_binlists, author="Wolfram Research", title="{BinLists}", year="2024", howpublished="\url{https://reference.wolfram.com/language/ref/BinLists.html}", note=[Accessed: 01-May-2026]}
BibLaTeX
@online{reference.wolfram_2025_binlists, organization={Wolfram Research}, title={BinLists}, year={2024}, url={https://reference.wolfram.com/language/ref/BinLists.html}, note=[Accessed: 01-May-2026]}