Skip to content
This repository has been archived by the owner on Nov 19, 2020. It is now read-only.

WIP: Series Resampling #27

Merged
merged 16 commits into from
Oct 2, 2019
Merged

WIP: Series Resampling #27

merged 16 commits into from
Oct 2, 2019

Conversation

kylebrandt
Copy link
Contributor

No description provided.

@kylebrandt
Copy link
Contributor Author

kylebrandt commented Sep 26, 2019

#26 adds a test to explore the panic. series resampling issue is for #19.

}, tp{
unixTimePointer(10, 0), float64Pointer(1.5),
}, tp{
unixTimePointer(15, 0), float64Pointer(2),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here the value is 2 because the last seen value from the original series is in the 9th second
but I'm not whether we should keep it like this or it should be 1.5 instead (the last value of the resampled series).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So when downsampling, in order to create a regular series there may be gaps because there was no data in the window to aggregate.

For the first pass I think these can be timestamp,null for now. But eventually we will want some "fill" options for how this is handled. If we were to create an irregular series, then we would omit the point entirely.

pkg/mathexp/types.go Outdated Show resolved Hide resolved
pkg/mathexp/types.go Outdated Show resolved Hide resolved
pkg/mathexp/types.go Outdated Show resolved Hide resolved
pkg/mathexp/types.go Outdated Show resolved Hide resolved
* Move resample code to separate file.
* Declare a separate function for parsing the rule.
* Compile regular expression only once
- Rename "VarToReduce" field of "ResampleCommand" to "VarToResample"
- Drop dependency to "gonum.org/v1/gonum/stat"
- Add support for min, max, count and sum downsampling function
@kylebrandt kylebrandt marked this pull request as ready for review October 2, 2019 13:19
@kylebrandt kylebrandt merged commit fb7be57 into master Oct 2, 2019
@kylebrandt kylebrandt deleted the 19-resampling-ts branch October 2, 2019 13:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants