Sine Wave Adder

jariak
May 21, 2015

Coursera - Developing Data Products

Course Project

Background

Adding sinusoids is an important topic in various fields, like for instance physics and signal processing.

Sine Wave Adder is a simple yet useful tool in illustrating the effect of adding two sinusoids with the same amplitude, but different frequencies and phase angles.

Technology

  • Shiny App
  • R's builtin curve-function used for plotting
  • No additional R-packages used
  • Supported frequency range: 0.1 … 10 Hz
  • Supported phase angle range: -90 … +90 degrees
  • Number of component sine waves: 2
  • Amplitude of component sine waves: 1

Screenshot

screenshot

Example

Component waves:

  • 1 Hz (phase angle 0 degrees)
  • 2 Hz (phase angle 0 degrees)

(plotting code executed with echo=FALSE here to save space)

plot of chunk unnamed-chunk-1