Skip to content

Instantly share code, notes, and snippets.

@vlofgren
Last active December 27, 2015 11:59
Show Gist options
  • Select an option

  • Save vlofgren/7322346 to your computer and use it in GitHub Desktop.

Select an option

Save vlofgren/7322346 to your computer and use it in GitHub Desktop.
double sum = 0;
for(harmonic = 1; 2*harmonic < length / frq; harmonic++) {
sum += fourier1(data, frq * harmonic, length);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment