From d80cb98b86d1e060f325b364fc0d375eb9ad55fa Mon Sep 17 00:00:00 2001 From: Roel Janssen Date: Wed, 26 May 2021 16:25:06 +0200 Subject: gnu: Add r-rnmf. * gnu/packages/cran.scm (r-rnmf): New variable. --- gnu/packages/cran.scm | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm index bf793d286a..4005bacc7b 100644 --- a/gnu/packages/cran.scm +++ b/gnu/packages/cran.scm @@ -19761,6 +19761,31 @@ introduced in Panneton et al. (2006), ``Improved Long-Period Generators Based on Linear Recurrences Modulo 2'', ACM Transactions on Mathematical Software.") (license license:bsd-3))) +(define-public r-rnmf + (package + (name "r-rnmf") + (version "0.5.0") + (source (origin + (method url-fetch) + (uri (cran-uri "rNMF" version)) + (sha256 + (base32 + "1nz6h0j5ywdh48m0swmhp34hbkycd7n13rclrxaw85qi9wc42597")))) + (build-system r-build-system) + (propagated-inputs + `(("r-knitr" ,r-knitr) + ("r-nnls" ,r-nnls))) + (home-page "https://cran.r-project.org/web/packages/rNMF/") + (synopsis "Robust nonnegative matrix factorization") + (description + "This package provides an implementation of robust nonnegative matrix +factorization (rNMF). The rNMF algorithm decomposes a nonnegative high +dimension data matrix into the product of two low rank nonnegative matrices, +while detecting and trimming outliers. The main function is @code{rnmf()}. +The package also includes a visualization tool, @code{see()}, that arranges +and prints vectorized images.") + (license license:gpl2+))) + (define-public r-randtoolbox (package (name "r-randtoolbox") -- cgit v1.2.3