Last active
August 29, 2015 14:07
-
-
Save samdjohnson/7eeaa641b708b6624dcc to your computer and use it in GitHub Desktop.
Time Series Interpolation w/ TempoIQ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
selection = { | |
:devices => {:key => device_key} | |
} | |
start = Time.utc(2014, 1, 1) | |
stop = Time.utc(2014, 1, 2) | |
rows = client.read(selection, start, stop) do |pipeline| | |
pipeline.interpolate("PT1S", :linear, start, stop) | |
end.to_a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment