Skip to content

Commit

Permalink
Update documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
cynthia committed Jan 6, 2018
1 parent de94ddb commit d11d38f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/Cpp_API.rst
Expand Up @@ -35,7 +35,7 @@ default value when the metric has the default value.**

- ``dim`` (int): dimension of vectors
- ``metric`` (std::string): an optional parameter for choosing a
metric of distance. (‘L2’\|‘angular’). A default metric is
metric of distance. (‘L2’\|'euclidean'\|‘angular’). A default metric is
‘angular’.

- ``void n2::HnswIndex.AddData(const std::vector<float>& data)``: adds
Expand Down
2 changes: 1 addition & 1 deletion docs/Go_API.rst
Expand Up @@ -41,7 +41,7 @@ default value when the metric has the default value.**

- ``dim`` (int): dimension of vectors
- ``metric`` (string): an optional parameter for choosing a metric
of distance. (‘L2’\|‘angular’)
of distance. (‘L2’\|'euclidean'\|‘angular’)

- ``index.AddData(v)``: adds vector ``v``

Expand Down
4 changes: 2 additions & 2 deletions docs/Python_API.rst
Expand Up @@ -7,7 +7,7 @@ Python code example
import random
f = 40
t = HnswIndex(f) # HnswIndex(f, "L2 or angular")
t = HnswIndex(f) # HnswIndex(f, "L2, euclidean, or angular")
for i in xrange(1000):
v = [random.gauss(0, 1) for z in xrange(f)]
t.add_data(v)
Expand All @@ -29,7 +29,7 @@ default value when the metric has the default value.**

- ``dim`` (int): dimension of vectors
- ``metric`` (string): an optional parameter for choosing a metric
of distance. (‘L2’\|‘angular’)
of distance. (‘L2’\|'euclidean'\|‘angular’)

- ``index.add_data(v)``: adds vector ``v``

Expand Down

0 comments on commit d11d38f

Please sign in to comment.