new NNDescent(elementsopt, metricopt, Kopt, rhoopt, deltaopt, seedopt) → {NNDescent}
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
elements | Array.<*> | <optional> | called V in paper. | |
metric | function | <optional> | euclidean | called sigma in paper. |
K | Number | <optional> | 10 | number of neighbors |
rho | Number | <optional> | .8 | sample rate. |
delta | Number | <optional> | 0.0001 | precision parameter. |
seed | Number | <optional> | 1987 | seed for the random number generator. |
- Source
Returns:
- Type:
- NNDescent
Methods
add(elements)
Parameters:
Name | Type | Description |
---|---|---|
elements | Array |
- Source
search(x, k)
Parameters:
Name | Type | Default | Description |
---|---|---|---|
x | * | ||
k | * | 5 |
- Source
- To Do
- not implemented yet