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

How often should sp_updatestats be called?

A question of mine which dealt with a slowly executing query introduced me to the sp_updatestats() function. I want to take pro-active steps to call it on a regular basis rather that wait for my queries to randomly start timing out during business…
Chad Decker
  • 5,997
  • 8
  • 27
  • 31
12
votes
2 answers

Make a table of string frequency

I am trying to make a summary table of many strings. My data looks like this: x<-c("a", "a", "b", "c", "c", "c", "d") How would I analyse the recurrence of each string at once? Ideally to produce a table of frequency like this (I presume it would…
bac
  • 607
  • 2
  • 8
  • 18
11
votes
0 answers

Android ToneGenerator example code

Just wondering if anyone has come by any example code using the ToneGenerator class? I would like to generate tones in the frequency range of about 200Hz to 900Hz. Thanks...
Damon
  • 718
  • 2
  • 8
  • 22
11
votes
4 answers

Sorting entire csv by frequency of occurence in one column

I have a large CSV file, which is a log of caller data. A short snippet of my file: CompanyName High Priority QualityIssue Customer1 Yes User Customer1 Yes User Customer2 No …
jenryb
  • 2,017
  • 12
  • 35
  • 72
11
votes
1 answer

Text deciphering, letter frequency based approach (questions about cost function)

I would like to decipher texts based on frequency analysis. Programming is not the problem, but there are some mathematical difficulties. (No worries, not for hacking, I want to have a go at the Zodiac 340 cipher, but the question is just in general…
maraca
  • 8,468
  • 3
  • 23
  • 45
10
votes
2 answers

Better way to get a frequency table for continuous data (R)?

With df: df <- data.frame(value=abs(rnorm(100, 25, 5)), status=sample(0:1,100,replace=T)) df$value[sample(1:100,5)] <- NA I need to get a frequency (percentage) table (better return a matrix) like the following: value | status(0) …
Rock
  • 2,827
  • 8
  • 35
  • 47
10
votes
2 answers

Low Pass filter + sample rate conversion using Avaudioengine iOS

We are working on a project which allows us to record some sounds from a microphone with a 5k Hz sample rate with some Low-Pass filter & HighPass filter. What we are using We are using AvaudioEngine for this purpose. We are using AVAudioConverter…
10
votes
1 answer

Normalizing FFT spectrum magnitude to 0dB

I'm using FFT to extract the amplitude of each frequency components from an audio file. Actually, there is already a function called Plot Spectrum in Audacity that can help to solve the problem. Taking this example audio file which is composed of…
WangYudong
  • 4,335
  • 4
  • 32
  • 54
10
votes
2 answers

Make Frequency histogram from list with tuple elements

I would like to make a word frequency distribution, with the words on the x-axis and the frequency count on the y-axis. I have the following list: example_list = [('dhr', 17838), ('mw', 13675), ('wel', 5499), ('goed', 5080), …
jjn
  • 147
  • 1
  • 1
  • 9
10
votes
4 answers

MATLAB - Missing fundamental from an FFT

I am currently working on my fourth year project (computer science) which involves the automatic transcription of music -> sheet music. I am doing it in Matlab at the moment but will have to be converted to java at some stage. My problem: …
Joneser
  • 211
  • 4
  • 12
10
votes
2 answers

Using dplyr for frequency counts of interactions, must include zero counts

My question involves writing code using the dplyr package in R I have a relatively large dataframe (approx 5 million rows) with 2 columns: the first with an individual identifier (id), and a second with a date (date). At present, each row indicates…
Mark T Patterson
  • 397
  • 1
  • 2
  • 10
10
votes
4 answers

Mysql create freqency distribution

I have a simple table BIRDCOUNT below, showing how many birds were counted on any given day: +----------+ | NUMBIRDS | +----------+ | 123 | | 573 | | 3 | | 234 | +----------+ I would like to create a frequency distribution…
TSG
  • 4,242
  • 9
  • 61
  • 121
9
votes
1 answer

How to extract counts as a vector from a table in R?

I'm trying to write a function to extract the frequencies of this table: 0 1 2 3 4 5 6 7 30 22 9 12 2 5 1 16 So I want to get c(30, 22, 9, 12, 2, 5, 1, 16). The table changes each time I run the function, so I need something that can…
user1021000
  • 237
  • 1
  • 3
  • 8
9
votes
2 answers

An interesting Google interview algorithm I found online that requires linear time

So I found this Google interview algorithm question online. It's really interesting and I still have not come up with a good solution yet. Please have a look, and give me a hint/solution, it would be great if you can write the code in Java…
Newbie_code
  • 163
  • 1
  • 9
9
votes
5 answers

How to get CPU frequency in c#

How can I get in c# the CPU frequency (example : 2Ghz) ? It's simple but I don't find it in the environnement variables. Thanks :)
Orpheo
  • 386
  • 1
  • 6
  • 15