-
Notifications
You must be signed in to change notification settings - Fork 127
Update docs for integrals in Toolkit 1.11 #1653
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Allow 10 minutes from last push for the staging site to build. If the link doesn't work, try using incognito mode instead. For internal reviewers, check web-documentation repo actions for staging build status. Link to build for this PR: http://docs-dev.timescale.com/docs-sv-toolkit-1-11 |
3d36695 to
1ef5432
Compare
charislam
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! Some minor nits, mostly non-blocking
| |-|-|-| | ||
| |`prev`|`TimeWeightSummary`|The TimeWeightSummary from the prior interval, used to interpolate the value at `start`. If `NULL`, the first timestamp in `tws` will be used as the start of the interval.| | ||
| |`next`|`TimeWeightSummary`|The TimeWeightSummary from the following interval, used to interpolate the value at `start` + `interval`. If `NULL`, the last timestamp in `tws` will be used as the end of the interval.| | ||
| |`prev`|`TimeWeightSummary`|The TimeWeightSummary from the prior interval, used to interpolate the value at `start`. If `NULL`, the first timestamp in `tws` is used as the start of the interval.| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I really, really appreciate that you're following the linter guidelines! 🙌🏼
| Time weighted integrals are useful when you need a time-weighted sum of | ||
| irregularly sampled data. For example, if you bill your users based on | ||
| irregularly sampled CPU usage, you need to find the total area under the graph | ||
| of their CPU usage. You can use a time-weighted integral to find the total | ||
| CPU-hours used by a user over a given time period. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great! Love the real-world example
Description
Updates documentation for the addition of
integral/interpolated_integralin Toolkit 1.11. I based the content for these based onaverage/interpolated_average, since the functions are very similar.Writing help
For information about style and word usage, see the style guide
Review checklists
Reviewers: use this section to ensure you have checked everything before approving this PR:
Subject matter expert (SME) review checklist
Documentation team review checklist
and have they been implemented?