diff options
author | Marius Bakke <mbakke@fastmail.com> | 2017-10-22 20:12:52 +0200 |
---|---|---|
committer | Marius Bakke <mbakke@fastmail.com> | 2017-10-22 20:12:52 +0200 |
commit | 119a749db9c9847e0766860c17109b0f0b6bf349 (patch) | |
tree | 4cdbfcad285124c1abf7b3c1c94666cef55767ce /gnu/packages/cran.scm | |
parent | 530d9e1555e8d0125dde6893f5f70c7a1ebc2564 (diff) | |
parent | 25669275a1a570cc266128274cb27a22f6a3a318 (diff) |
Merge branch 'master' into core-updates
Diffstat (limited to 'gnu/packages/cran.scm')
-rw-r--r-- | gnu/packages/cran.scm | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm index e00a8a4ba2..dba294c8d7 100644 --- a/gnu/packages/cran.scm +++ b/gnu/packages/cran.scm @@ -1217,3 +1217,27 @@ initial data set and then applied to other data sets. The resulting design matrices can then be used as inputs into statistical or machine learning models.") (license license:gpl2))) + +(define-public r-pdist + (package + (name "r-pdist") + (version "1.2") + (source + (origin + (method url-fetch) + (uri (cran-uri "pdist" version)) + (sha256 + (base32 + "18nd3mgad11f2zmwcp0w3sxlch4a9y6wp8dfdyzvjn7y4b4bq0dd")))) + (build-system r-build-system) + (home-page "https://github.com/jeffwong/pdist") + (synopsis "Partitioned distance function") + (description + "Pdist computes the euclidean distance between rows of a matrix X and +rows of another matrix Y. Previously, this could be done by binding the two +matrices together and calling @code{dist}, but this creates unnecessary +computation by computing the distances between a row of X and another row of +X, and likewise for Y. Pdist strictly computes distances across the two +matrices, not within the same matrix, making computations significantly faster +for certain use cases.") + (license license:gpl3+))) |