You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/commands/tdigest.cdf/index.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ categories:
15
15
- oss
16
16
- kubernetes
17
17
- clients
18
-
complexity: O(1)
18
+
complexity: O(N) where N is the number of values specified.
19
19
description: Returns, for each input value, an estimation of the fraction (floating-point)
20
20
of (observations smaller than the given value + half the observations equal to the
21
21
given value)
@@ -34,7 +34,7 @@ title: TDIGEST.CDF
34
34
---
35
35
Returns, for each input value, an estimation of the fraction (floating-point) of (observations smaller than the given value + half the observations equal to the given value).
36
36
37
-
Multiple fractions can be retrieved in a signle call.
37
+
Multiple fractions can be retrieved in a single call.
Copy file name to clipboardExpand all lines: content/commands/tdigest.rank/index.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ categories:
15
15
- oss
16
16
- kubernetes
17
17
- clients
18
-
complexity: O(1)
18
+
complexity: O(N) where N is the number of values specified.
19
19
description: Returns, for each input value (floating-point), the estimated rank of
20
20
the value (the number of observations in the sketch that are smaller than the value
21
21
+ half the number of observations that are equal to the value)
@@ -34,7 +34,7 @@ title: TDIGEST.RANK
34
34
---
35
35
Returns, for each input value (floating-point), the estimated rank of the value (the number of observations in the sketch that are smaller than the value + half the number of observations that are equal to the value).
Copy file name to clipboardExpand all lines: content/commands/tdigest.revrank/index.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ categories:
15
15
- oss
16
16
- kubernetes
17
17
- clients
18
-
complexity: O(1)
18
+
complexity: O(N) where N is the number of values specified.
19
19
description: Returns, for each input value (floating-point), the estimated reverse
20
20
rank of the value (the number of observations in the sketch that are larger than
21
21
the value + half the number of observations that are equal to the value)
@@ -34,7 +34,7 @@ title: TDIGEST.REVRANK
34
34
---
35
35
Returns, for each input value (floating-point), the estimated reverse rank of the value (the number of observations in the sketch that are larger than the value + half the number of observations that are equal to the value).
36
36
37
-
Multiple reverse ranks can be retrieved in a signle call.
37
+
Multiple reverse ranks can be retrieved in a single call.
Copy file name to clipboardExpand all lines: content/commands/ts.create/index.md
+3Lines changed: 3 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -149,6 +149,9 @@ is policy for handling insertion ([`TS.ADD`]({{< baseurl >}}/commands/ts.add/) a
149
149
-`SUM`: If a previous sample exists, add the new sample to it so that the updated value is equal to (previous + new). If no previous sample exists, set the updated value equal to the new value.
150
150
151
151
When not specified: set to the global [DUPLICATE_POLICY]({{< baseurl >}}/develop/data-types/timeseries/configuration#duplicate_policy) configuration of the database (which, by default, is `BLOCK`).
152
+
153
+
`BLOCK` is often used to avoid accidental changes. `FIRST` can be used as an optimization when duplicate reports are possible. `LAST` can be used when updates are being reported. `SUM` is used for counters (e.g., the number of cars entering a parking lot per minute when there are multiple reporting counting devices). `MIN` and `MAX` can be used, for example, to store the minimal/maximal stock price per minute (instead of storing all the samples and defining a compaction rule).
0 commit comments