Questions tagged [periodicity]

Questions about periodicity, an interval of time. It can represent a clock or an interval between days, minutes or any other unit of time.

Questions about periodicity, an interval of time. It can represent a clock or an interval between days, minutes or any other unit of time.

83 questions
11
votes
3 answers

Find likeliest periodicity for time series with numpy's Fourier Transform?

Assume I have a time series t with one hundred measurements, each entry representing the measured value for each day. I assume there is some periodicity in the signal -- it might repeat daily, weekly or monthly. Translating the time series into the…
Marcel
  • 335
  • 1
  • 2
  • 10
9
votes
2 answers

Periodic work requests using WorkManager not working

i am trying to write a periodic workmanager script but it just run when i open the app and it just run one time (not periodic) ! here is my main activity : public class MainActivity extends AppCompatActivity { @Override protected void…
Qasem Salehy
  • 165
  • 2
  • 2
  • 10
5
votes
1 answer

Solving and plotting a piecewise ODE

I have a function dφ/dt = γ - F(φ) (where F(φ) -- a is 2π-periodic function) and the graph of the function F(φ). I need to create a program that outputs 6 plots of φ(t) for different values of γ (γ = 0.1, 0.5, 0.95, 1.05, 2, 5), and t∈[0,100]. Here…
james
  • 109
  • 6
4
votes
1 answer

Generate a quasi periodic signal

Is there a way to generate a quasi periodic signal (a signal with a specific frequency distribution, like a normal distribution)? In addition, the signal should not have a stationary frequency distribution since the inverse Fourier transform of a…
4
votes
1 answer

Generating indicators of different periodicity in quantstrat

I would like to use indicators of timeframes different to the data I am using. I have seen this asked a few time but no solutions as of yet (at least for me anyway). The below example uses daily stock data however the actual project uses intraday…
user3180258
  • 97
  • 13
3
votes
1 answer

How to repeat an action every day in an Android app?

I want to repeat an action every day; it must continue working even if the app is not running or the device has been restarted (rebooted). In my code I'm trying to show a TOAST message every 1 minute (as a test); it's working fine in the emulator…
WIKOSO
  • 105
  • 1
  • 2
  • 12
3
votes
1 answer

How to find the periodicity (if it exists) of a Pandas Time Series?

My question is: Let's say I have a Pandas Time Series, so Dates as index and a numerical column. I would like to know what is the easiest way to find its periodicity, or an approximation. Can someone explain to me what the different steps to solve…
Alex
  • 87
  • 1
  • 1
  • 7
2
votes
1 answer

python execute function every n seconds wait for completion

I want to execute FUNCTION periodically every 60 seconds, but I don't want to execute FUNCTION again IF the previous run has not completed yet. If the previous run completes in e.g. 120s then I want to execute a new FUNCTION call straight away. If…
Dariusz Krynicki
  • 2,544
  • 1
  • 22
  • 47
2
votes
3 answers

How to receive a daily notification at a specific time in Android with WorkManager and OneTimeWorkRequest?

My goal Receive a single notification every 8 am when my switch is activated Current result -I receive a notification each time I launch the app if I first activated the switch -I also receive notifications without launching the app at any time -In…
2
votes
1 answer

How to fire a command at HH:29:55 and HH:59:55 in a windows batch file

In a windows batch file (x.bat), how can I fire a command once every 30 minutes, when the second component of the time is greater than 55? What I have now is: :loop program.exe PING localhost -n 1800 >NUL goto loop The problem is that the…
Chong Lip Phang
  • 8,755
  • 5
  • 65
  • 100
2
votes
1 answer

How to use excel data to find period

I have three Excel columns of data from an experiment with a pendulum: time, angle displacement, and angular velocity. I was wondering if there is a way in Excel to calculate and then graph the period (and, if possible, display the function for the…
wolfwoof
  • 21
  • 1
  • 2
2
votes
0 answers

Find period in a Time Series

I have the following Time Series: From the plot I can notice that data are periodic, since the peaks(let's call them valley since I am talking about the one that goes down) have more or less the same distances. Is there a way to find what is the…
Marco
  • 1,195
  • 3
  • 18
  • 30
2
votes
1 answer

R - Analysis of time series with semi-annual data?

I have a time series with semi-annual (half-yearly) data points. It seems that the ts() function can't handle that as "frequency = 2" returns a very strange time series object that extends far beyond the actual time period. Is there any way to do…
SiKiHe
  • 439
  • 6
  • 16
2
votes
0 answers

How to count the number of rotation of an object having a pseudo-circular movement from it's coordinates (t, X, Y)

So I have an object that has a pseudo-ciruclar movement (EDIT : with a non constant period). I'm filming it with a 30 fps camera, and I extract it's position X and Y every 3 frame. Moreover, the center of this circular movement is moving. Entry Data…
Mathieu
  • 5,410
  • 6
  • 28
  • 55
1
vote
0 answers

Why do simulated arrival times from a Poisson distribution seem to show periodicity?

I am experimenting with simulated arrival times drawn from a Poisson distribution. To construct the arrival times, I am randomly drawing inter-arrival times from the inverse CDF, which is exponentially distributed. The formula for the inter-arrival…
grover
  • 927
  • 1
  • 10
  • 21
1
2 3 4 5 6