Skip to content

Instantly share code, notes, and snippets.

@funrep
Created October 28, 2013 15:05
Show Gist options
  • Save funrep/7198390 to your computer and use it in GitHub Desktop.
Save funrep/7198390 to your computer and use it in GitHub Desktop.
15:59 < ocharles> klrr_: that's euler integration
15:59 < ocharles> klrr_: the idea is that we assume the thing being integrated is a stepped graph
15:59 < ocharles> so we take the last produced value and multiple it by dt - which means we assume
that for dt seconds the value was the previous value
16:00 < ocharles> then we add that onto an accumulator
16:00 < ocharles> so we're approximing an integral by sampling at some frequency and assuming a
'rectangle' under the curve until the next instant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment