Skip to content

Commit 332cd42

Browse files
DOC-5228 fixed incorrect percentages
1 parent c7ac6aa commit 332cd42

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

content/develop/clients/dotnet/prob.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ sketch commands.
233233
< /clients-example >}}-->
234234
```cs
235235
// Specify that you want to keep the counts within 0.01
236-
// (0.1%) of the true value with a 0.005 (0.05%) chance
236+
// (1%) of the true value with a 0.005 (0.5%) chance
237237
// of going outside this limit.
238238
bool res15 = db.CMS().InitByProb("items_sold", 0.01, 0.005);
239239
Console.WriteLine(res15); // >>> true

content/develop/clients/go/prob.md

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ This gives a very compact representation of the
9797
set's membership with a fixed memory size, regardless of how many items you
9898
add. The following example adds some names to a Bloom filter representing
9999
a list of users and checks for the presence or absence of users in the list.
100-
Note that you must use the `bf()` method to access the Bloom filter commands.
101100

102101
```go
103102
res1, err := rdb.BFMAdd(
@@ -134,9 +133,7 @@ fmt.Println(res3) // >>> false
134133
< /clients-example >}}-->
135134

136135
A Cuckoo filter has similar features to a Bloom filter, but also supports
137-
a deletion operation to remove hashes from a set, as shown in the example
138-
below. Note that you must use the `cf()` method to access the Cuckoo filter
139-
commands.
136+
a deletion operation to remove hashes from a set, as shown in the example below.
140137

141138
```go
142139
res4, err := rdb.CFAdd(ctx, "other_users", "paolo").Result()
@@ -310,10 +307,11 @@ desired range. For example, you can request that the count should
310307
stay within 0.1% of the true value and have a 0.05% probability
311308
of going outside this limit. The example below shows how to create
312309
a Count-min sketch object, add data to it, and then query it.
313-
Note that you must use the `cms()` method to access the Count-min
314-
sketch commands.
315310

316311
```go
312+
// Specify that you want to keep the counts within 0.01
313+
// (1%) of the true value with a 0.005 (0.5%) chance
314+
// of going outside this limit.
317315
res16, err := rdb.CMSInitByProb(ctx, "items_sold", 0.01, 0.005).Result()
318316

319317
if err != nil {
@@ -391,8 +389,7 @@ maximum values, the quantile of 0.75, and the
391389
[cumulative distribution function](https://en.wikipedia.org/wiki/Cumulative_distribution_function)
392390
(CDF), which is effectively the inverse of the quantile function. It also
393391
shows how to merge two or more t-digest objects to query the combined
394-
data set. Note that you must use the `tdigest()` method to access the
395-
t-digest commands.
392+
data set.
396393

397394
```go
398395
res20, err := rdb.TDigestCreate(ctx, "male_heights").Result()
@@ -511,8 +508,7 @@ The example below adds several different items to a Top-K object
511508
that tracks the top three items (this is the second parameter to
512509
the `topk().reserve()` method). It also shows how to list the
513510
top *k* items and query whether or not a given item is in the
514-
list. Note that you must use the `topk()` method to access the
515-
Top-K commands.
511+
list.
516512

517513
```go
518514
// Create a TopK filter that keeps track of the top 3 items

content/develop/clients/nodejs/prob.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ sketch commands.
219219

220220
```js
221221
// Specify that you want to keep the counts within 0.01
222-
// (0.1%) of the true value with a 0.005 (0.05%) chance
222+
// (1%) of the true value with a 0.005 (0.5%) chance
223223
// of going outside this limit.
224224
const res16 = await client.cms.initByProb("items_sold", 0.01, 0.005);
225225
console.log(res16); // >>> OK

0 commit comments

Comments
 (0)