Questions tagged [zerocrossing]
7 questions
1
vote
1 answer
Get multiplicity of zeros in sympy?
I would like to get the multiplicity of zeros as a return value from sympy.solveset.
For the example below I get zeroes = {0}. I would like to receive something like
zeroes = {0, 0, 0, 0, 0, 0}. Thanks!
import sympy
z = sympy.symbols('z')
zeroes =…

PalimPalim
- 13
- 2
1
vote
0 answers
Why is there a problem with the Gaussianity in my data, and how do I fix it?
I have two Gaussian noise generators, from MATLAB's randn() function:
noise1 = randn(1,100000)
noise2 = randn(1,100000)
I'm finding the points where they are equal. For this, I add 100 points in between each point:
mehvec =…

Christiana S. F. Chamon
- 139
- 2
- 11
1
vote
3 answers
Counting Days where numbers turn from positive to negative
I have the following DataFrame:
macd_hist
Out[10]:
ADANIPORTS.NS ASIANPAINT.NS ... WIPRO.NS ZEEL.NS
Date ...
2015-06-22 NaN NaN ... NaN …

Slartibartfast
- 1,058
- 4
- 26
- 60
1
vote
2 answers
Create a feature in pandas based on another column
I have the following dataset:
data = {'ROC_9': [0.006250, 0.087230, 0.045028, 0.165738, -0.006993, -0.432736, -0.11162, 0.057466, 0.203138, -0.008234]}
price_data = pd.DataFrame (data)
It is an indicator about a stock price, namely rate of…

alitkie
- 13
- 4
0
votes
2 answers
Using a zero-crossing algorithm with a vector
I have some problems with a zero crossing algorithm.
Lets suppose we have this dataset:
time <- c(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20)
x <- c(1,2,3,-2 -4,-8,-2,0,1,2,3,4,2,1,-3,-4,-7,-4,-1,1,2)
df <- data.frame(time, x)
df
I need to…

piravi
- 109
- 1
- 6
0
votes
1 answer
Python: Zero Crossing method for Frequency Estimation
I'm trying to understand the zero-crossing method for frequency estimation. After searching, found this code:
est_freq = round(framerate / np.mean(np.diff(zero_crossings)) / 2)
Dissecting further to learn, I wrote the code below:
import numpy as…

siva
- 2,105
- 4
- 20
- 37
0
votes
1 answer
Octave zerocrossing of two vectors
I have a question regarding zerocrossing. I have three vectors [t],[x],[y] of same length.
I would like to create a function which would search for points where [x] and [y] simultaneously make the zerocrossing. Please refer to the enclosed picture…

Blaz
- 45
- 4