Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [r]

The tag has no usage guidance.

2
votes
4answers
128 views

Estimate peak width from a vector that is a superposition of unknown number of identical Gaussian peaks with different heights?

If you have a vector that is a superposition of an unknown number of identical Gaussian shaped peaks/impulses of unknown width (but all the same width) and different amplitudes (with Poisson or ...
2
votes
1answer
22 views

How to make a Power Spectral Density Plot in R

I have a time series point process representing neuron spikes. I have computed and plotted autocovariance using acf but now I need to plot the Power Spectral ...
-1
votes
0answers
38 views

Savitzky–Golay on real-time data

I'm trying to use the Savitzky–Golay smoothing on real-time data in R. The R documentation page for the sgolay function says this: "Normally, you would apply the first (n-1)/2 rows to the first k ...
1
vote
0answers
23 views

Octave filtfilt converted to R code

R has a function called filtfilt that performs zero-phase digital filtering by processing the input data in both the forward and reverse directions. But it suffers from having steep transition bands....
-1
votes
1answer
58 views

Pitch Calculation Error via Autocorrelation Method

Aim : Pitch Calculation Issue : The calculated pitch does not match the expected one. For instance, the output is approx. 'D3', however the expected output is 'C5'. Source Sound : https://...
1
vote
1answer
50 views

Reproducing paper results about a wavelet transformation using python [closed]

I have been reading this PhD theis about wavelets and I am trying to reproduce some of the results but I don't know the specific code to use to generate similar results. The original time series ...
2
votes
1answer
222 views

How to Calculate the Ambiguity Function

(Maybe this should be on Stackoverflow instead ...) What is the best way to calculate the ambiguity function? There are different implementations out there for Python (like PyTFTB or from ...
0
votes
1answer
133 views

Implementing FIR/IIR “alike” filter in R

I am new to signal processing. I am trying to simulate something similar to IIR/FIR filter with $k$ delays to imitate acoustic echo reflection. The difference equations for FIR and IIR respectively ...
0
votes
0answers
445 views

Calculating and plotting Wavelet Power Spectral Density

I would like to calculate the power spectrum of the wavelet coefficients for an observed signal and compare it with the Fourier power spectrum of the same signal. I want to do this to show how the ...
1
vote
1answer
228 views

Finding baseline (reference) of nosiy data and lag/lead between 2 signals

I have 2 datasets which vary with time as shown in the figure - Sa – Red , Sb – BLACK . I am doing the analysis in R. The entire dataset and a segment of data from 30 - 31 s are shown below - - As ...
1
vote
3answers
242 views

Analysis of vibration signals

I have a vibration signal coming from a motor measured from accelerometer (Irregular Time series) and I need to use these signals for analysis purpose. I am in need to transform this signal to some ...
1
vote
0answers
246 views

Filter image in Fourier space imaginary components after ifft (R)

I want to high-pass filter an image in Fourier space. It works but the retransformed image has an imaginary part, what shouldn't be the case http://math.stackexchange.com/questions/867337/how-to-...
1
vote
3answers
227 views

Amplitude cutoff following FFT

suppose I have a noisy sine wave (as R code): ...
0
votes
1answer
319 views

Implementing a bandpass filter in R - this code's logic confuses me

I am reading this "how to" in R: http://www.inside-r.org/howto/time-series-analysis-and-order-prediction-r I am confused about the tutorial's implemented band pass filter. In particular, here's the ...