如何确定“振荡”轨迹的幅度和频率(How to determine the amplitude and the frequency of an “oscillating” trajectory)

编程入门 行业动态 更新时间:2024-10-26 00:26:07
如何确定“振荡”轨迹的幅度和频率(How to determine the amplitude and the frequency of an “oscillating” trajectory)

这是行人挤塞的轨迹

正如你所看到的,他/她的头部表现出类似振荡的运动。 所以不是一个完美的曲线,但不是一条线。

是否有可能为这个不规则曲线定义“振幅”和“频率”?

更新

到目前为止我尝试了两种不同的方法

第一个是基于计算转折点,然后用它们进行样条。 第二种方法基于unutbu的建议,并使用Ramer-Douglas-Peucker算法。

结果如下:

我在RDP中看到的问题是自由参数dist 。 低值(意味着更多细节)意味着产生的轨迹中的振荡。 所以我不得不小心这个参数。 此外, splin曲线更平滑。

你怎么看?

This is the trajectory of a pedestrian moving in jam

As you can see, his/her head perform an oscillation-like movement. So not a perfect sinus curve but neither a line.

Is it possible to define for this irregular curve an "amplitude" and a "frequency"?

UPDATE:

So far I tried two different approaches:

The first one is based on calculating the turning points and then make a spline with them. The second approach is based on the suggestion of unutbu and uses the Ramer-Douglas-Peucker algorithm.

The results are as follows:

The problem that I see with the RDP is the free parameter dist. low values (means more details) imply oscillations in the resulting trajectories. So I'm forced to be careful with this parameter. Besides, the splined curve is much more smoother.

What do you think?

更多推荐

本文发布于:2023-08-06 22:11:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1457478.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:轨迹   幅度   频率   determine   trajectory

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!