Questions tagged [frequency]

The rate at which a thing occurs or is found.

The rate at which a thing occurs or is found.

2858 questions
5
votes
2 answers

Meaning of the function numpy.fft.fftfreq

Some days ago I came across this answer about the usage of the FFT In the answer there's a piece of code like this: w = np.fft.fft(data) freqs = np.fft.fftfreq(len(w)) I read about the function fftfreq in the numpy documentation (here) and i found…
5
votes
4 answers

Frequency of values per column in table

What is a good way to get the independent frequency counts of multiple columns using dplyr? I want to go from a table of values: # A tibble: 7 x 4 a b c d 1 1 2 1 3 2 1 2 1 …
tkerwin
  • 9,559
  • 1
  • 31
  • 47
5
votes
1 answer

Calculating Bandpower of a Signal in Python

I have to calculate the bandpower of a signal for a certain vector of frequencies in python as a project. In MATLAB it can be done using p = bandpower(pxx,f,'psd') where pxx is Power spectral density vector and f, is a vector of frequencies…
tahsin314
  • 521
  • 1
  • 7
  • 22
5
votes
3 answers

Table frequency from multiple col and multiple row in R

I am trying to get a frequency table from this dataframe: tmp2 <- structure(list(a1 = c(1L, 0L, 0L), a2 = c(1L, 0L, 1L), a3 = c(0L, 1L, 0L), b1 = c(1L, 0L, 1L), b2 = c(1L, 0L, 0L), b3 = c(0L, 1L, 1L)), …
S12000
  • 3,345
  • 12
  • 35
  • 51
5
votes
3 answers

Create a two-mode frequency matrix in R

I have a data frame, which looks something like this: CASENO Var1 Var2 Resp1 Resp2 1 1 0 1 1 2 0 0 0 0 3 1 1 1 1 4 1 1 0 1 5 1 0 …
jj987246
  • 105
  • 6
5
votes
1 answer

Overlay density plot excludes histogram values

I want to overlay a density curve to a frequency histogram I have constructed. For the frequency histogram I used aes(y=..counts../40) because 40 is my total sample number. I used aes(y=..density..*0.1) to force the density to be somewhere between 0…
Matias Andina
  • 4,029
  • 4
  • 26
  • 58
5
votes
0 answers

NAudio - How to change frequency at runtime (Doppler)

I'd like to know if there is a way to change the frequency(pitch) and volume of the audio while playing in NAudio. I'd like to simulate the Doppler effect. The observer is in the middle and does not move. While the moving object is going to the…
Rok
  • 787
  • 9
  • 17
5
votes
2 answers

Get highest frequency terms from Lucene index

i need to extract terms with highest frequencies from several lucene indexes, to use them for some semantic analysis. So, I want to get maybe top 30 most occuring terms(still did not decide on threshold, i will analyze results) and their…
Julia
  • 1,217
  • 8
  • 23
  • 46
5
votes
1 answer

Get maximum supported cpu frequency in linux kernel space

I have found that clk_get_rate() returns the current frequency, but is there any function or way of finding out maximum frequency supported in linux kernel space?
Skull
  • 61
  • 2
5
votes
0 answers

How To Detect Sound Frequency on Android?

First of all, I am pretty new to Android. I was doing Arduino before this. And my first objective that I want to achieve is to be able to detect a specific sound frequency or pattern. So, before I can even detect a specific sound frequency, I have…
Syah
  • 463
  • 5
  • 13
5
votes
1 answer

Extract numerical values from zfilter object in python in AudioLazy library

I'm using AudioLazy Library for the extraction of some audio features. The lpc function (Linear Predictive Coding) receives a block in the time domain, and returns the whitening LPC filter (ZFilter) filt = lpc(intensity, order=16) # Analysis…
elviuz
  • 639
  • 1
  • 7
  • 26
5
votes
3 answers

Getting the most frequent element in a factor in R

I have a set of strings in a R variable, when I check the class, it says it is a factor. eg. mySet<-c("abc","abc","def","abc","def","efg","abc") I want to get the string which occurs the maximum number of times in this set(i.e."abc" in this…
arjun010
  • 129
  • 1
  • 2
  • 12
5
votes
3 answers

change pitch of multiple audio files with Sox

I am intending to take my entire music collection and change the pitch from the original recorded a=440hz to the more natural sounding/feeling a=432hz. For those of you who are not familiar with this concept, or the "why" for doing this, I highly…
user2946608
  • 51
  • 1
  • 3
5
votes
1 answer

Specify the channel (or frequency) for Wi-Fi scan in Android

I understand that do a Wi-Fi scan in Android is pretty simple. You get a WiFiManager, register a BroadcastReceiver and invoke WiFiManager.startScan(). Then you just need to wait. The problem is I don't want to wait that long. To do this, instead of…
huangcd
  • 2,369
  • 3
  • 18
  • 26
5
votes
2 answers

How to get the frequency from PCM data in java - fft

For some reason the frequencies as displaced 391 hz => 1162 440 hz => 2196 493 hz => 2454 I am using this values final int audioFrames= 1024; final float sampleRate= 44100.0f; final int bitsPerRecord= 16; final int channels= 1; final…
Jose Hidalgo
  • 362
  • 3
  • 8