Skip to content

Instantly share code, notes, and snippets.

@jrleeman
Created August 18, 2015 15:09
Show Gist options
  • Select an option

  • Save jrleeman/84b4afcbed95e715ca0c to your computer and use it in GitHub Desktop.

Select an option

Save jrleeman/84b4afcbed95e715ca0c to your computer and use it in GitHub Desktop.
Musing about the correct normalization factors for an amplitude spectrum.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@shaharkadmiel
Copy link

@jrleeman great work putting it all together in one place...
In code cell In [6] the last line X_len_norm = X/(0.2*signal.size) should become X_len_norm = X/(0.5*signal.size). When you change this, the amplitudes are actually exactly right.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment