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
0
votes
0 answers

Android Kotlin - Generate Tone/Beep of Particular Frequency

I am facing an issue regarding playing the tone on a particular frequency. I used the ToneGenerator class as instructed by ChatGPT. I am unable to play it on a specific frequency. I tried this: private val generator =…
0
votes
1 answer

add marginal frequency to three way frequency table

I want to create a cross frequency table of three (weighted) variables with marginal frequency. Here is a reproducible example library(stats) library(dplyr) data("cms_patient_care", package = "tidyr") weights <- rnorm(252, 1,0.1) df <-…
axel
  • 15
  • 5
0
votes
1 answer

R: summarising a dataframe while retaining/adding together values within the dataframe

R: randomly sampling a dataframe based on another dataframe with a range - background question/details I'm still struggling with this annoying random sampling thing, it's still not doing quite what I want it to, and on top of that the data isn't…
0
votes
1 answer

What does the spatial frequency domain look like after the Fourier transform of a real array?

I have an array with N purely real points representing a spatial function: [f_0, f_1, f_2, ... , f_{N-1}] The function values are spaced in with a distance dx. Therefore the Nyquist frequency is given by f_N = 1/(2*dx) I calculate the Fourier…
madde
  • 9
  • 2
0
votes
1 answer

frequency counter with Lattice ice40 dev board

Hello I am very new to the FPGAs. My goal is to make a frequency counter that would be able to count 5-6Mhz with +-5Hz error. Would Lattice ICE40 be sufficient for this task? This board looks pretty simple to start and not so expensive. Thanks,
Pavs
  • 1
0
votes
0 answers

Weird issue with PyShark/TShark and MQTT publishing

So I have a Python MQTT program with a publisher and a subscriber code (in separate files). In my testing, I am running multiple publisher codes on Raspberry Pi 4B, and one subscriber code on my computer, where a Mosquitto broker is also located to…
0
votes
0 answers

How to determine best time and day for response using R

I am trying to determine when is the best time to call patients and have them answer the phone. Is there a way to find the time of day AND day of week that results in most number of answered calls (i.e. Wednesday from 1-2 pm)? Thanks! Here is some…
dlodge
  • 1
  • 2
0
votes
2 answers

Calculate sums and percentage of each column

In Stata I want to calculate the sums of some columns and divide the results by the sum of another column. My data is as follows: Spi pop1 pop2 pop3 pop4 total…
Saidbf
  • 11
  • 3
0
votes
0 answers

Create a frequency table in R with square bracket in left interval and round bracket in right

In the given code: table(cut(rpois(1000, 50), seq(0, 100, by = 10))) the result is such that L < x <= U. I would like the result to be L <= x < U. This is required for entire for all. I have tried including include.lowest and include.highest but it…
Sanjay
  • 41
  • 3
0
votes
0 answers

Changing the Frequency of a PWM signal generated using the analogwrite function on an Arduino Nano every

We used the analogwrite function to create a PWM signal on the arduino nano every. However that has a fixed frequency of around 500 Hz and we were looking for one above 250000 HZ, hence I came across this blog…
0
votes
0 answers

Denial of service protection: how to reject connections based on content and frequency (golang as example)

I run a p2p service (so no webserver, no load balancing with DOS functionality, etc.), which receives direct connection requests. I want to reject connections when the exact same message has been sent too frequently up to a certain threshold. Let's…
transient_loop
  • 5,984
  • 15
  • 58
  • 117
0
votes
1 answer

Tidy data with frequency weights in rows

I have collected non-tidy data from different studies. Assume this data is about studies that report on a number patients having treatment_x and with a treatment outcome in percentages and an x number of recurrences of the treated…
0
votes
0 answers

I'd like to change the build file and get permission

Build File error image enter image description here Permission error image enter image description here I'd like to change the build file and get permission. This application is an app that measures frequency through a microphone, and I downloaded…
0
votes
1 answer

Is there a way to create a table in R that shows both frequency and proportion values for a dataframe using dplyr?

I want to create a table in R that looks something like this: I have tried many different approaches using dplyr and basic R but nothing looks like I want it to. Here is an example of my dataframe: Country Gender Income Country…
anso_s
  • 1
  • 1
0
votes
1 answer

Haskell - compute frequencies of elements in a list

I need to compute a frequency map of an input list. My attempt: f :: (Eq a, Ord a) => (a -> a) -> Map.Map a Int -> Map.Map a Int f x m = Map.alter id (Map.findWithDefault 0 x m + 1) m freqs :: (Eq a, Ord a) => [a] -> Map.Map a Int freqs xs = foldr…
coderodde
  • 1,269
  • 4
  • 17
  • 34