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
7
votes
1 answer

How to get CPU clock frequency on an ARM/Linux machine

The answer seems pretty obvious I guess but none of the possible answers given in https://superuser.com/questions/406141/how-to-get-an-arm-cpu-clock-speed-in-linux applies to me. cat /proc/cpuinfo only gives me processor : 0 model name : ARMv7…
frans
  • 8,868
  • 11
  • 58
  • 132
7
votes
1 answer

Python plot frequency of fft.rfft

this is my first question here on stackoverflow and I hope I will not make huge mistakes. I am analyzing a set of time series with sampling rate of 1 Hz. I need to plot their fourier transform in order to study their spectra. Here it is my piece of…
basetta81
  • 73
  • 1
  • 4
7
votes
4 answers

frequency table with several variables in R

I am trying to replicate a table often used in official statistics but no success so far. Given a dataframe like this one: d1 <- data.frame( StudentID = c("x1", "x10", "x2", "x3", "x4", "x5", "x6", "x7", "x8", "x9"), …
user1043144
  • 2,680
  • 5
  • 29
  • 45
7
votes
4 answers

Intel MSR frequency scaling per - thread

I'm extending the Linux kernel in order to control the frequency of some threads: when they are scheduled onto a core (any core!), the core's frequency is changed by writing the proper p-state to the register IA32_PERF_CTL, as suggested in Intel's…
user1466329
  • 156
  • 1
  • 9
7
votes
4 answers

Find the N-th most frequent number in the array

Find the nth most frequent number in array. (There is no limit on the range of the numbers) I think we can (i) store the occurence of every element using maps in C++ (ii) build a Max-heap in linear time of the occurences(or frequence) of element…
Luv
  • 5,381
  • 9
  • 48
  • 61
6
votes
4 answers

Play stereo tone in android

Similar topics on this question include only playing tone in mono where the left and right frequencies are the same. My question is: how to generate a stereo tone such that the left channel has a different frequency than the right channel? I thought…
Neigyl R. Noval
  • 6,018
  • 4
  • 27
  • 45
6
votes
1 answer

Python find audio frequency and amplitude over time

Here is what I would like to do. I would like to find the audio frequency and amplitude of a .wav file at every say 1ms of that .wav file and save it into a file. I have graphed frequency vs amplitude and have graphed amplitude over time but I…
Taylor
  • 61
  • 1
  • 2
6
votes
2 answers

"Error: Can't convert to character"

My student and I both loaded the same dataset, installed the same packages, and were running the same code. When I run "frq" I get a frequency table and the variable is labeled as "numeric." When my student runs the same code, she gets "Error: Can't…
mt646
  • 61
  • 1
  • 2
6
votes
4 answers

R: Count frequency of values in nested list with sub-elements

I have a nested list that contains country names. I want to count the frequency of the countries, whereby +1 is added with each mention in a sub-list (regardless of how often the country is mentioned in that sub-list). For instance, if I have this…
anpami
  • 760
  • 5
  • 17
6
votes
1 answer

readframes return 2 byte in python

When readframes() is used in python, the online documention says sampling frequency is returned it looks it returns 2 bytes. I think there are 4 byte on each frame: left = 2 bytes right = 2 bytes Do I have to check if it is mono or stereo and if it…
kim taeyun
  • 1,837
  • 2
  • 24
  • 49
6
votes
4 answers

How do I get count of number of items in selection?

I want to list in array format how many in each Diet group (there are four) have Time > 21. I have tried to solve this in RStudio. data(ChickWeight) newdata <- subset(ChickWeight, Time >= 21, select=Diet) In order to find how many observations are…
Metsfan
  • 510
  • 2
  • 8
6
votes
1 answer

Produce sounds of different frequencies in Swift

I want to make an app like this. This app is mosquito repellent app which produces sound of some frequency. I don't want it to limit to one sound. I want to generate and play sounds of different frequencies for different purposes. How can I do that…
Salman Khalid
  • 543
  • 5
  • 23
6
votes
1 answer

Python: Calculating frequency over time from a wav file in Python?

I am using scipy's wavfile library to read a wavfile. rate, data = scipy.io.wavfile.read(filename) This will return the rate and RAW data of the given wav filename. What transformation on the data array do I need to do to go from RAW data to…
Eduardo Morales
  • 764
  • 7
  • 29
6
votes
4 answers

Counting frequency of words in documents using python regex

Created a python module which reads in a file, removes the stop words and outputs a python dictionary with the word and its frequency (How many times it occurred in the document). def run(): filelist = os.listdir(path) regex = re.compile(r'.*
jenniem001
  • 596
  • 1
  • 5
  • 16
6
votes
1 answer

Android LiveData: Not receiving all notifications

I'm experimenting with Android's LiveData. I just tried to push a lot of notifications to an observer that observes a LiveData object. I let a thread run in background and in a while-loop i constantly push random values via LiveData's…
MarcWho
  • 196
  • 2
  • 11