Looking to find every instance in which a time series of a stock index declines by 10% or greater. I am struggling to program it so that it understands order matters (don't want appreciation by 10%).
Ideally the code would: Pick value, check if…
I have some data from a bioanalyzer which gives me time (x-axis) and absorbance values (y-axis). The time is every .05 seconds and its from 32s to 138 so you can imagine how many data points I have. I've created a graph using plotly and matplotlib,…
I have a list of floats called self.data[_]['smooth_ISA']
I'm giving this list to peakutils.indexes() like this:
indexes = peakutils.indexes(self.data[_]['smooth_ISA'], thres=0.1, min_dist=50)
But I'm getting this error:
TypeError: only integer…
I am trying to use peakutils to find the peak. Here is my code:
import pandas as pd
import peakutils
from peakutils import *
import matplotlib.pyplot as plt
estimated_data = pd.read_csv("file", header=None)
col1 = estimated_data[:][0] # First…
I am trying to use peakutils library and have installed that using
pip install peakutils
but when I attempt to import same in my jupyter notebook, it shows the import error
Before this, I have never faced such an issue.
I don't have a PYTHONPATH…
This is an example similar to what my data looks like, there's a sharp peak, surrounded by some small noise, and mostly constant elsewhere with small noise.
Both find_peaks_cwt and peakutils don't perform as I would have hoped on this…
I have two arrays MSFx and MSFy both of length 64, that plots out a graph with 7 clearly detectable peaks. However, only 4-5 get detected.
What I have so far.
MSFxr = np.array(MSFx[::-1])
MSFy = np.array(MSFy)
print(MSFxr)
print(MSFy)
indexes =…
I want to use the Python package peakutils from within R. To do this, I use the reticulate package. Here's an example of what I'd like to do.
# Load packages
library(data.table)
library(reticulate)
# Set RNG
set.seed(-1)
# Synthetic data…
I am trying to identify the R peak of an ECG.
I have used the following line of code to do this:
peaks=signal.find_peaks_cwt(signal_slice, widths=np.arange(1,80))
fig, ax = plt.subplots()
ax.set_title('Detect R peak')
ax.plot(signal_slice)
for peak…
I am using python 2.7 and want to install PeakUtils. I can't install the module from Pycharm.
The Error message is Non-zero exit code (1).
Proposed solution
Try to run this command from the system terminal. Make sure that you use the correct version…
I'm retrieving the arrays holding the power levels and frequencies, respectively, of a signal from the plt.psd() method:
Pxx, freqs = plt.psd(signals[0], NFFT=2048, Fs=sdr.sample_rate/1e6, Fc=sdr.center_freq/1e6, scale_by_freq=True,…
I'm able to capture signals from a RTL-SDR by using the following:
from rtlsdr import *
i = 0
signals = []
sdr = RtlSdr()
sdr.sample_rate = 2.8e6
sdr.center_freq = 434.42e6
sdr.gain = 25
while True:
samples = sdr.read_samples(1024*1024)
…
This is pretty much the same problem as this question, however, that question has been dead in the water and I don't have the reputation to revive it in the comments, yet still find myself needing to resolve the problem.
The idea is that when using…
I'm currently using peakutils to find peaks in some data. My data contains some "dull peaks", that is my peaks plateau somewhat. I can't set my code to find these peaks even after playing around with the threshold and minimum distance parameters.…
I want to use
import peakutils.peak in python (ubuntu 16.04)
I use anaconda packages in python. How could I download peakutils package using conda.
I use
conda install -c cbetters peakutils=1.0.3
But the error that I got:
import…