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
1
vote
0 answers

how to force a long function to run with a cyclic check?

i am wondering whether this is possible to do in Python 3.x i have a function in a class that is quite long (time wise), it takes a few minutes to finish running. I am wondering whether I can force it to stop with an exception. But I want to have…
Josh.h
  • 71
  • 1
  • 13
1
vote
2 answers

Pandas print date periods where a condition holds in a data frame column?

I have a txt. file that looks as follows: Name 1 @Name( ) Value WATER WHP …
kn2298
  • 49
  • 5
1
vote
1 answer

time between max and min of cycles

I have a series of data of 60,000 data which part of the data is as the figure 1 (the whole curve is not so nice and uniform like this image (some other part of data is as second image)) but there are many cycles with different period in my data. I…
Shalen
  • 95
  • 6
1
vote
1 answer

How do you forecast future values using support vector regression in R

I am trying to forecast for future values of a periodic position dependent on time (x ~ time), univariate forecasting using support vector regression. The model fits well on train data but then trails into a straight line when evaluated on test…
luminare
  • 363
  • 1
  • 2
  • 15
1
vote
1 answer

How to printing all 8 neighbors in a 2D vector (Segmentation Fault)

I am attempting to access ALL 8 neighbors of an index on a 2D vector. I then try to do the following pseudocode to find all 8 neighbors cout << grid[columnindex-(-1->1)][rowIndex-(-1->1)] << endl; However, when I do this I get a segmentation fault.…
jakem
  • 21
  • 3
1
vote
5 answers

How do I measure the periodicity (or frequency) of a list of values?

Let's say I have a list of values: [0, 10, 20, 10, 0, 10, 20, 10, 0, ...] Clearly there's periodicity. We see that there is a cycle every 5 entries. I want to measure the average periodicity, or the average number of entries it takes to complete a…
iuppiter
  • 171
  • 1
  • 9
1
vote
1 answer

Periodicity inside time series: I have the period itself, how can I know where the periodicity started?

I have a time-series that contains a hidden periodicity in the data. I already found the period itself (e.g., 60 minutes, 100 minutes). How can I find the specific sequence that has the periodicity? note that the periodicity can even start in the…
Hen Tzaban
  • 11
  • 2
1
vote
1 answer

Calculating the mean and variance of a periodic (circular) variable in R

I have several variables in my dataset that represent daily timing of events across a week. For example for two rows might look like: t1 = c(NA,12.6,10.7,11.5,12.5,9.5,14.1) t2 = c(23.7,1.2,NA,22.9,23.2,0.5,0.1) I want to calculate the variance of…
tiit_helimut
  • 155
  • 1
  • 8
1
vote
2 answers

How to calculate distance between two dihedral (periodic) angles distributions in python?

I am searching for the correct and most straightforward way of handling periodicity when calculating the Earth Mover's Distance (EMD: https://en.wikipedia.org/wiki/Earth_mover%27s_distance) (also known as Wasserstein metric) between two…
1
vote
1 answer

Neo4j Apoc Periodic Commit Limit is not working

I am trying to delete all nodes having degree equal or less than 1 but it is not working. My query is as follows CALL apoc.periodic.commit(" MATCH (n:RoadPoint)-[:ROAD_SEGMENT]-(m:RoadPoint) WHERE NOT (:Depot)-[:LOCATED_AT]->(n) WITH n ,…
Awais Mushtaq
  • 633
  • 1
  • 10
  • 23
1
vote
2 answers

How to plot bar chart of monthly deviations from annual mean?

SO! I am trying to create a plot of monthly deviations from annual means for temperature data using a bar chart. I have data across many years and I want to show the seasonal behavior in temperatures between months. The bars should represent the…
caker1012
  • 55
  • 8
1
vote
6 answers

Calculate periodic values from year to date figures in SQL

I have accumulated year-to-date values for each period. But I need periodic values for each product group / period. Do you know a solution in SQL Server to achive this in a simple way? This is my sample data: Product Group | Period |…
Philipp
  • 23
  • 1
  • 3
1
vote
1 answer

periodically search with gmailr

I would like to periodically search my gmail inbox by specific e-mails with a fixed subject. Someone have any idea how can I automate this search? I'm using the gmailr package. Any idea would be much appreciated. Best regards, Hellen
1
vote
1 answer

How can I detect periodicity using auto-correlation automatically?

This is my code: import matplotlib.pyplot as plt import numpy as np from pandas.plotting import autocorrelation_plot y = np.sin(np.arange(1,6*3.14,0.1)) autocorrelation_plot(y) plt.show() And this is the output of the auto-correlation…
ezzeddin
  • 499
  • 2
  • 5
  • 25
1
vote
2 answers

An Algorithm Comparing Peaks: are they in phase or not?

I am developing an algorithm for comparing two lists of numbers. The lists represent peaks discovering in a signal using a robust peak detection method. I wish to come up with some way of determining whether the peaks are either in phase, out of…
David Ferris
  • 2,215
  • 6
  • 28
  • 53