Skip to content

Commit

Permalink
Merge pull request #69 from jakirkham/dists_doc_more_kwargs
Browse files Browse the repository at this point in the history
Document cdist's/pdist's keyword arguments V, VI, and w
  • Loading branch information
jakirkham committed Oct 6, 2017
2 parents 3883bd2 + f487978 commit e8d3559
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions dask_distance/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ def cdist(XA, XB, metric="euclidean", **kwargs):
Keyword Args:
p: p-norm for minkowski only (default: 2)
V: 1-D array of variances for seuclidean only
(default: estimated from XA and XB)
VI: Inverse of the covariance matrix for mahalanobis only
(default: estimated from XA and XB)
w: 1-D array of weights for wminkowski only (required)
Returns:
array: distance between each combination of points
Expand Down Expand Up @@ -129,6 +134,11 @@ def pdist(X, metric="euclidean", **kwargs):
Keyword Args:
p: p-norm for minkowski only (default: 2)
V: 1-D array of variances for seuclidean only
(default: estimated from X)
VI: Inverse of the covariance matrix for mahalanobis only
(default: estimated from X)
w: 1-D array of weights for wminkowski only (required)
Returns:
array: condensed distance between each pair
Expand Down

0 comments on commit e8d3559

Please sign in to comment.