Skip to content

Commit

Permalink
Rename again
Browse files Browse the repository at this point in the history
  • Loading branch information
urschrei committed Jun 25, 2024
1 parent 57dbc4e commit 8133f11
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
[package]
name = "distinct"
version = "0.1.10"
name = "count_distinct"
version = "0.1.11"
edition = "2021"

[lib]
name = "distinct"
name = "count_distinct"
# "cdylib" is necessary to produce a shared library for Python to import from.
crate-type = ["cdylib"]

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ Don Knuth has written about the algorithm (he refers to it as **Algorithm D**) a
where _s_ >= 1. Our implementation doesn't use a treap as a buffer; it uses a fast HashSet with the [FxHash](https://docs.rs/fxhash/latest/fxhash/) algorithm: we pay the hash cost when inserting, but search in step **D4** is `O(1)`. The library may switch to a treap implementation eventually.

# Installation
`pip install distinct`
`pip install count_distinct`

# Usage
```python
from distinct import CVM
from count_distinct import CVM

# values for epsilon, delta, and stream size are described in the docstring.
counter = CVM(0.8, 0.1, 1000)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ testpaths = [
]

[project]
name = "distinct"
name = "count_distinct"
description = "Use the CVM algorithm to quickly estimate the number of distinct elements in a stream"
authors = [{ name = "Stephan Hügel", email = "urschrei@gmail.com" }]
license = {file = "license.txt"}
Expand Down

0 comments on commit 8133f11

Please sign in to comment.