Got a tip for us? Let us know
Feb 7, 2012, 04:09 PM  #1 
Adding a signal to a time series
How would one go about adding a signal (such as a sin wave) to a time series?
For instance, I would like a period to occur every time step Thanks Last edited by dukebound85; Feb 7, 2012 at 04:17 PM. 

0 
Feb 7, 2012, 06:15 PM  #2 
If there's one period of the sine wave at every time step, then the contribution from the sine wave is constant. The value of the constant depends on the phase of the sine wave relative to your time sample.
If the above isn't clear, draw it on some graph paper. Assume each vertical line on the graph paper is a sample point. Draw a sine wave whose period is identical to the vertical lines of the graph paper (one cycle per space between vertical lines). What is the value of the sine wave at each vertical line? If the vertical lines represent the samples of your time series, then what is the sine wave's value at each sample point? If you change the phase of the sine wave with respect to the vertical lines (sample points), but keep the sine's period at 1 cycle per sample interval, what changes? For example, if the phase is 1/4waveform (90 degrees), what changes at each sample point? For reference, look up "Nyquist frequency" and "Shannon sampling theorem", and see what "aliasing" means as a DSP term. If you want to add a sine wave whose period is less than your sampling frequency, then use the sin() function to calculate it based on the ratio of your sine frequency to your sampling frequency. Example: for a sine wave of 100 Hz, and a sampling frequency of 1 Khz, you have 10 sample points per sine period. Since sin() is circular, that means 2pi = 10 sinewave samples. The equations aren't that hard to work out if you apply basic algebra. I think it's worthwhile to know how to develop the equations, because it will give you a better sense of how signals are related to sampled data. Last edited by chown33; Feb 7, 2012 at 06:21 PM. 

0 
Feb 8, 2012, 12:24 AM  #3  
Thanks I will attempt to answer these questions
Quote:
Quote:
Quote:
Quote:
Quote:


0 
«
Previous Thread

Next Thread
»
Thread Tools  Search this Thread 
Display Modes  
Similar Threads  
thread  Thread Starter  Forum  Replies  Last Post 
WiFi timeout while full signal.  IHan  MacBook Pro  2  Feb 18, 2013 08:08 AM 
iPhone: Wifi and data signal lost time to time  elisa2012  Jailbreaks and iOS Hacks  8  Dec 16, 2012 09:52 PM 
Trouble adding new MacBook to existing Time Machine (Time Capsule)  Cowboy59  Mac Peripherals  1  Oct 14, 2012 06:20 AM 
Adding a Series of Images to Numbers  danqi  Mac Applications and Mac App Store  2  Sep 2, 2012 09:18 AM 
Lexmark 3300 series won't scan from Time Capsule  Diogones  Mac Peripherals  1  Aug 15, 2012 07:35 AM 

All times are GMT 5. The time now is 04:19 AM.