Skip to content

Commit c54b959

Browse files
committed
Fixed documentation in compute_cross_nn_distances
1 parent 9255cb3 commit c54b959

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

dadapy/_utils/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,11 +87,11 @@ def compute_cross_nn_distances(
8787
):
8888
"""Compute distances, up to neighbour maxk, between points of X_new and points of X.
8989
90-
The element distances[i,j] represents the distance between point i in dataset X and its j-th neighbour in dataset
91-
X_new, whose index is dist_indices[i,j]
90+
The element distances[i,j] represents the distance between point i in dataset X_new and its j-th neighbour in dataset
91+
X, whose index is dist_indices[i,j]
9292
9393
Args:
94-
X_new (np.array(float)): dataset from which distances are computed
94+
X_new (np.array(float)): dataset (N points) from which distances are computed
9595
X (np.array(float)): starting dataset of points, from which distances are computed
9696
maxk (int): number of neighbours to save
9797
metric (str): metric used to compute the distances

0 commit comments

Comments
 (0)