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

Automatically execute a function periodically, save output in csv and then plot graph based on the csv file generated

I am working on a dashboard that will automatically refresh every 30 minutes. The idea is to automatically execute a function every 30 minutes, save the output in csv file, and then plot a graph based on the csv file generated. After 30 minutes, do…
0
votes
2 answers

Generating discrete time periodic signal in matlab

x[t] is a discrete time periodic signal defined as follows over one period x[t] = {1 , 2 , 1 , 2 , 3 , 1 , 2 , 3 , 4.....} I want to generate this as a periodic signal in the interval [0,100] in Matlab. But, I am unable to write a code for this.
0
votes
2 answers

autocorrelation to detect periodicity

I am processing a signal in real-time. I need to detect whether the signal is periodic or not (not only by visualizing graphs). So I tought of autocorrelation function. Here's my approach but I am not sure : I calculate the autocorrelation of the…
DBen
  • 31
  • 3
0
votes
1 answer

Seaborn plot periodicities of time series

How can I achieve something similar to: sns.lineplot(d['month'], d[variable], hue=d['year'], palette=palette) https://deffro.github.io/time%20series/exploratory%20data%20analysis/data%20visualization/time-series-analysis/ For my own data?…
Georg Heiler
  • 16,916
  • 36
  • 162
  • 292
0
votes
1 answer

How to specify the periodicity of an angular predictor (`sun_altitude`) in a regression model?

I am using the package momentuHMM in R, which analyses data using Hidden Markov Models. However, coefficient estimates are calculated using linear regressions. If I would want to use Hour (format: 24 h) as a predictor variable of a given Ydependent…
Dekike
  • 1,264
  • 6
  • 17
0
votes
1 answer

Autofill data in Excel according to a predefined list using Python

In my excel file, I have a list of some 7000-8000 binary chemical compounds. (Consists of 2 elements only). And I have segregated them into their component elements, i.e., I have 2 columns of elements, namely: First Element and Second Element. I…
Pranoy Ray
  • 33
  • 7
0
votes
1 answer

Are there any methods for detecting binary time series periodicity?

I am struggling with finding methods which can be used to detect the periodicity of binary time series.(the binary time series look like 0,0,1,0,0,1,0,0,1... or 1,0,0,0,1,1,0,1,0,0,0,0...)
0
votes
0 answers

Smooth interpolation (and extrapolation) through an approximately periodic function

I have some data points that I have plotted upon a scatter plot (see below; note that only the blue points are of interest for this question - please ignore the red and green points). These data points exist between -170 and +175 degrees. Firstly, I…
chelseabej1998
  • 111
  • 1
  • 6
0
votes
2 answers

Spheres with periodic boundaries on a 3D mesh

I am trying to figure out how to define periodic boundaries on a numpy mesh. Let's say I define a box of size 1x1x1, and I put a sphere of radius 0.25 inside. This sphere is not in the center but close enough to a border such that part of the sphere…
Oier Arcelus
  • 107
  • 1
  • 8
0
votes
2 answers

find second duplicate and period in a python list

I've a python list as this one [2, 5, 26, 37, 45, 12, 23, 37, 45, 12, 23, 37, 45, 12, 23, 37]. The real list is really long. The list repeat itself after a certain point in this case after 37. I have no problem finding the number at which it…
4rt1c0
  • 21
  • 3
0
votes
1 answer

How to use the modulo operator to deal with periodic boundary conditions?

I want to set up a two dimensional box with length L and periodic boundary conditions in Python. One way to proceed is to fix the reference frame at bottom left corner, then I have: L = 5 # box length x, y = 2, 3 # initial values # step in my…
Dani
  • 473
  • 3
  • 21
0
votes
1 answer

Finding periodicity of trajectory time series in python

I am doing a time series analysis and I am trying to find the periodicity of my time-series. I have done the following code and found the graphs (see attached): # Periodicity of the two trajectories from statsmodels import api as sm # convert…
0
votes
1 answer

Matrix periodic boundary conditions Matlab

I need some help, i have a matrix rapresenting points on a grid and when given a element i would like to find the indices of its nearest neighbors keeping in mind that i have periodic boundary conditions, so that if i have the element A(1,1) its…
Andrea
  • 135
  • 6
0
votes
1 answer

Single(and inexpensive) operation to cycle through a 3 value C# enum periodically(ie with wrap)

I have a 3 element enum, it defines one of three contexts, for example red, green, or blue. This enum is used in a loop with millions of iterations, for example, pixel many. The fields are currently one int apart, the default. Given a desired…
schulmaster
  • 413
  • 5
  • 16
0
votes
1 answer

pandas: rolling with periodic boundaries

Is it possible to include the start and end index values in when using the rolling function in pandas such that the values of the series are periodic? For example, I have the following Series instance: import pandas as pd timestamps = [1, 2, 3,…
ajrlewis
  • 2,968
  • 3
  • 33
  • 67