Matlab 直方图应用

发布于 2024-12-22 23:42:45 字数 290 浏览 1 评论 0原文

在我的应用程序中,我有许多数据点,每个数据点都与一个数字和强度相关联。我试图弄清楚如何对这些数据点进行排序,以便我可以找到具有最高强度的最频繁的数据点 - 答案将有点像这两者之间的平均值。

我可以使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

拥有 2024-12-29 23:42:45

我可能会严重误解你的问题,但你为什么不使用 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?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文