用于双精度数据一维数组的简单 ANSI C 直方图函数?
是否有通用的解决方案可以从输入的一维双精度数据数组创建数据的一维直方图数组?
我不想在 C 中绘制直方图,我只需要通过对数据进行分箱来创建直方图一维数组。
有人可以帮助我理解 C 中的分箱(例如循环)代码是什么样子吗?假设最小和最大数据点已知,并且我们希望使用不同 bin 的可变数量(例如 hist_pts
)。
Is there a generic solution out there to create a 1-D histogram array of data from an input 1-D array of double-precision data?
Not looking to plot the histogram in C, I just need something to create the histogram 1-D array by binning the data.
Could someone help me understand what the binning (e.g. loop) code may look like in C? Assume the min and max data points are known and we want to use a variable number (e.g. hist_pts
) of different bins.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)