Skip to content

Commit

Permalink
Fix docs for timeseries functions
Browse files Browse the repository at this point in the history
  • Loading branch information
sartaj10 committed May 31, 2018
1 parent e807410 commit 52bbf4a
Show file tree
Hide file tree
Showing 6 changed files with 122 additions and 128 deletions.
12 changes: 6 additions & 6 deletions packages/pond/lib/timeseries.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ export declare class TimeSeries<T extends Key> {
* ```
* Options:
* * `fieldSpec` - the field to fill
* * `method` - the interpolation method, one of `FillMethod.Hold`, `FillMethod.Pad`
* * `method` - the interpolation method, one of `FillMethod.Zero`, `FillMethod.Pad`
* or `FillMethod.Linear`
* * `limit` - the number of missing values to fill before giving up
*
Expand Down Expand Up @@ -760,7 +760,7 @@ export declare class TimeSeries<T extends Key> {
* const timeseries = new TimeSeries(data);
* const dailyAvg = timeseries.fixedWindowRollup({
* windowSize: "1d",
* aggregation: {value: {value: avg()}}
* aggregation: {value:["value", avg()]}
* });
* ```
*
Expand All @@ -779,7 +779,7 @@ export declare class TimeSeries<T extends Key> {
* applied. This specification describes a mapping of output
* fieldNames to aggregation functions and their fieldPath. For example:
* ```
* {in_avg: {in: avg()}, out_avg: {out: avg()}}
* {in_avg: ["in", avg()], out_avg: ["out", avg()]}
* ```
*
*/
Expand All @@ -791,7 +791,7 @@ export declare class TimeSeries<T extends Key> {
* applied. This specification describes a mapping of output
* fieldNames to aggregation functions and their fieldPath. For example:
* ```
* {in_avg: {in: avg()}, out_avg: {out: avg()}}
* {in_avg: ["in", avg()], out_avg: ["out", avg()]}
* ```
*
*/
Expand All @@ -803,7 +803,7 @@ export declare class TimeSeries<T extends Key> {
* applied. This specification describes a mapping of output
* fieldNames to aggregation functions and their fieldPath. For example:
* ```
* {in_avg: {in: avg()}, out_avg: {out: avg()}}
* {in_avg: ["in", avg()], out_avg: ["out", avg()]}
* ```
*
*/
Expand All @@ -815,7 +815,7 @@ export declare class TimeSeries<T extends Key> {
* fieldNames to aggregation functions and their fieldPath. For example:
*
* ```
* {in_avg: {in: avg()}, out_avg: {out: avg()}}
* {in_avg: ["in", avg()], out_avg: ["out", avg()]}
* ```
*
*/
Expand Down
12 changes: 6 additions & 6 deletions packages/pond/lib/timeseries.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/pond/lib/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export declare enum AlignmentMethod {
}
/**
* Method of filling used by the `fill()` function:
* * `Hold` - Fill with the previous value
* * `Pad` - Fill with the previous value
* * `Linear` - Fill between the last value and the next value linearly
* * `Zero` - Fill with 0
*/
Expand Down
2 changes: 1 addition & 1 deletion packages/pond/lib/types.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions packages/pond/src/timeseries.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1154,7 +1154,7 @@ export class TimeSeries<T extends Key> {
* const timeseries = new TimeSeries(data);
* const dailyAvg = timeseries.fixedWindowRollup({
* windowSize: "1d",
* aggregation: {value: {value: avg()}}
* aggregation: {value:["value", avg()]}
* });
* ```
*
Expand Down Expand Up @@ -1193,7 +1193,7 @@ export class TimeSeries<T extends Key> {
* applied. This specification describes a mapping of output
* fieldNames to aggregation functions and their fieldPath. For example:
* ```
* {in_avg: {in: avg()}, out_avg: {out: avg()}}
* {in_avg: ["in", avg()], out_avg: ["out", avg()]}
* ```
*
*/
Expand All @@ -1219,7 +1219,7 @@ export class TimeSeries<T extends Key> {
* applied. This specification describes a mapping of output
* fieldNames to aggregation functions and their fieldPath. For example:
* ```
* {in_avg: {in: avg()}, out_avg: {out: avg()}}
* {in_avg: ["in", avg()], out_avg: ["out", avg()]}
* ```
*
*/
Expand All @@ -1240,7 +1240,7 @@ export class TimeSeries<T extends Key> {
* applied. This specification describes a mapping of output
* fieldNames to aggregation functions and their fieldPath. For example:
* ```
* {in_avg: {in: avg()}, out_avg: {out: avg()}}
* {in_avg: ["in", avg()], out_avg: ["out", avg()]}
* ```
*
*/
Expand All @@ -1266,7 +1266,7 @@ export class TimeSeries<T extends Key> {
* fieldNames to aggregation functions and their fieldPath. For example:
*
* ```
* {in_avg: {in: avg()}, out_avg: {out: avg()}}
* {in_avg: ["in", avg()], out_avg: ["out", avg()]}
* ```
*
*/
Expand Down
Loading

0 comments on commit 52bbf4a

Please sign in to comment.