问题标签 [frequency-analysis]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
linux - 如何统计我的按键频率和计数
我正在尝试重新映射我的键盘以更好地打字。
但是我需要知道每个键包含符号的频率,如果包含 tab shift ctrl 那就太好了。我需要所有的按键计算不仅字母出现在英文单词中的频率。
我使用 ibus-pinyin 作为我的输入法。还有archlinux,很棒的wm,没有安装kde和gnome。任何程序可以帮助我?
顺便说一句:德沃夏克有什么问题。 http://colemak.com/FAQ#What.27s_wrong_with_the_Dvorak_layout.3F
但是 colemak 也不适合我,因为我想要更多的 synmbols。
但我必须保留一些数字,1-5 才能从 ibus 中选择中文单词,你知道拼音字母频率与英文字母不同。
php - 如何替换和计算单词或单词序列的频率?
我需要做两件事,首先,找到一个给定的文本,它是最常用的单词和单词序列(限于n)。例子:
Lorem * ipsum * dolor sit amet , consectetur adipiscing elit。Nunc auctor urna sed urna mattis nec interdum magna ullamcorper。Donec ut lorem eros,id rhoncus nisl。Praesent sodales lorem vitae sapien volutpat et accumsan lorem viverra。Proin lectus elit , cursus ut feugiat ut,porta sit amet leo。Cras est nisl, aliquet quis lobortis sat amet , viverra non erat。Faucibus orci luctus et ultrices posuere cubilia Curae 的前庭前庭;整数 euismod scelerisque quam, et aliquet nibh dignissim at。Pellentesque ut elit内克。Etiam facilisis nisl eu mauris luctus in consequat libero volutpat。Pellentesque auctor, justo in suscipit mollis, erat justo sollicitudin ipsum , in cursus erat ipsum id turpis。在tincidunt hendrerit scelerisque。
(有些词我被省略了,但这是一个例子)。
我想结果是sat amet而不是sat and amet
关于如何开始的任何想法?
其次,我需要将给定文件中给定列表中匹配的所有单词或单词序列包装起来。
为此,我认为通过降低长度对结果进行排序,然后在替换函数中处理每个字符串,以避免如果我的列表中有另一个坐词,则将坐 amet包装起来。这是一个好方法吗?!
谢谢
java - Input audio frequency analysis and generating particular frequency to output
My aim is to have a set of frequencies like 2 frequencies that represent the bits (0 and 1). I want to send those frequencies to the audio out through sound card. At the other end I connect the cord to microphone in of the sound card. I like to sense that signal (generated series of 2 fixed frequencies) from other computer and re-form the data.
How can I do this?
cryptography - 密码学。英文“普通文本”?
我被要求制作一个软件,该软件将根据字母频率加密和解密“普通英语”文本。
问题是我在哪里可以找到一些官方频率匹配的文本样本?
到目前为止,我尝试过列夫·托尔斯泰的《战争与和平》,效果不佳。
LE:我不仅需要一个单词列表,我还需要一个文本样本来进行一些处理。
LE2:目标是在 2000 个字符的长文本中从 26 中猜测 20。
audio - Improving frequency resolution of FFT output by limiting frequency range?
I am new to FFTs and signal processing, so hopefully this question makes sense and/or isn't stupid.
I would like to perform spectrum analysis on a live audio signal. My goal is to find a good tradeoff between responsiveness and frequency resolution, such that I can take a guess at the pitch of the incoming audio in near-realtime.
From what I've gathered about the math behind the Fourier transform, there is an inherent balance between sample size and frequency resolution. The bigger the sample, the better resolution. Since I am trying to minimize sample size (to attain the near-realtime requirement), this means my resolution suffers (each slot in the output buffer corresponds to a wide frequency range, which is undesirable).
However, for my intended application, I don't care about most of the spectrum. I only need spectrum info for a narrow frequency range, say 100hz - 1600hz for example. Is there any way to modify an FFT implementation such that I can improve the resolution of the frequency domain output while keeping the input buffer size constant (and small)? In other words, can I trade output total bandwidth for output resolution? If so, how is this done?
Although I have a weak grasp of the math at best, it seems that padding the input buffer with zeros might be interesting, no?
Thanks in advance for any help you can offer.
c# - 如何实现频域平滑?
我想对频域中的图像进行平滑处理。当我使用谷歌查看任何文章时,它提供了一些我不需要的 Matlab 代码。我可以对图像进行 FFT,但我不知道如何在频域中实现任何平滑技术(ILPF、BLPF、IHPF、BHPF)。如果您可以在不使用任何图像处理库的情况下为上述任何技术提供任何代码示例,那将非常有帮助,并且首选 C#。
谢谢,
python - 确定数据集的“摆动” - Python
我正在开发一款需要实现一组数据摆动的软件。这是我将收到的输入样本,与每个垂直像素条的亮度图合并:
很容易看出左边距真的很不稳定(即有大量的最小值/最大值),我想生成一组图像的临界点。我已经对数据应用了高斯平滑函数 ~ 10 次,但一开始似乎很不稳定。
有任何想法吗?
这是我的原始代码,但它不会产生非常好的结果(对于摆动):
image-processing - 用于信号过滤的 DWT 或 WP
我正在处理一个与小波变换相关的棘手问题(至少对我来说很棘手:)。我有一个信号,比如说一个正弦波(频率 f1)与另一个正弦波(频率 f2)叠加。如果另一个信号的频率比原来的信号高,那么它的过滤就不会出现问题。但是,这不是我的情况,因为我必须处理两个频率相似的信号,例如 f2 = 1.2 f1。有没有办法使用小波变换重建原始正弦曲线,最好是 DWT 或小波包?我可能会更好地从 CWT 中受益,因为它显示了完整的时间尺度属性,但这不是选项。
提前谢谢了。
java - 帮助使用 FFT 确定音频样本的频率
我目前正在开发一个打击乐教程程序。该程序要求我可以确定正在播放的鼓,为此我将分析鼓录音的频率并查看频率是否在给定范围内。
到目前为止,我一直在使用 FFT 的 Apache 数学公共实现(http://commons.apache.org/math/)但我的问题是,一旦我执行 FFT,我如何使用结果数组来计算频率包含在信号中?
注意:我也尝试过使用自相关,但它似乎不适用于鼓组中的样本
任何关于如何确定击打什么鼓的帮助或替代建议将不胜感激
编辑:自从写这篇文章以来,我发现了一个很棒的在线课程,关于在 Java 中实现 FFT 以进行时间/频率转换Java 中的频谱分析
fft - 吉他弦的 FFT 音高检测
我有简单的音高检测。输入(麦克风)数据传递给 fft 例程,然后我正在寻找具有最大值的音高这意味着:
我需要它来检测吉他弦的主频率。它适用于频率 440 赫兹(也许更高,我没有检查)到 250 赫兹。低于这个值,检测到的频率是它应该达到的两倍,即。对于 195 赫兹,检测到的频率约为 380 赫兹。看起来它检测到低于 250 赫兹的高次谐波。对于纯 195 赫兹的音调,它可以完美地检测到,但对于 quitar 字符串,它是错误的。
有什么建议会导致这种情况吗?或者我应该使用更复杂的音高检测?
附言。采样率:8000hz,输入数据大小:1024