Matlab 直方图应用
在我的应用程序中,我有许多数据点,每个数据点都与一个数字和强度相关联。我试图弄清楚如何对这些数据点进行排序,以便我可以找到具有最高强度的最频繁的数据点 - 答案将有点像这两者之间的平均值。
我可以使用 hist()
生成数据点的直方图并找出最常出现的数字。然而,我很难想出一种方法来轻松地按数字对数据点强度进行排序。 (我想我可以将数字的历史与强度的历史相乘来找到最佳的垃圾箱。)我不认为 hist()
可以做到这一点。还有别的办法吗?或者我是否仅限于通过遍历每个数量的箱来手动对数据点强度进行箱?
In my application, I have a number of data points and each are associated with a number and strength. I am trying to figure out how to sort these data points so that I can find the most frequent data point with the highest strength -- the answer will be sort of like an average between these two.
I can use hist()
to generate the histogram of the data points and find which number occurs most often. However, I'm having trouble thinking of a way to sort the data point strengths by number easily. (I figure I can just multiply the hist of numbers with hist of strengths to find the best bin.) I don't think hist()
can do this. Is there another way? Or am I limited to just binning the data point strengths manually by going through each number of bin?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我可能会严重误解你的问题,但你为什么不使用 2D 直方图例程(FEX 中有很多,例如 this) 并找到对应于一系列数字和一系列强度的箱 - 数据点出现率最高?
I may be severely misinterpreting your problem, but why don't you use a 2D histogram routine (there are many in the FEX, such as this) and find the bin - corresponding to a range of numbers and a range of strengths - with the highest incidence of data points?