guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/13: gnu: Add r-nsprcomp.


From: guix-commits
Subject: 01/13: gnu: Add r-nsprcomp.
Date: Tue, 7 Sep 2021 08:11:47 -0400 (EDT)

rekado pushed a commit to branch master
in repository guix.

commit 336e618770d9bb70e1595666c8d25b40936e83b5
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Tue Sep 7 12:48:10 2021 +0200

    gnu: Add r-nsprcomp.
    
    * gnu/packages/cran.scm (r-nsprcomp): New variable.
---
 gnu/packages/cran.scm | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/gnu/packages/cran.scm b/gnu/packages/cran.scm
index 45d162d..9319f97 100644
--- a/gnu/packages/cran.scm
+++ b/gnu/packages/cran.scm
@@ -9390,6 +9390,33 @@ and make comparisons between different methodologies 
straightforward.")
 several entropy estimators.")
     (license license:gpl3+)))
 
+(define-public r-nsprcomp
+  (package
+    (name "r-nsprcomp")
+    (version "0.5.1-2")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (cran-uri "nsprcomp" version))
+       (sha256
+        (base32
+         "1zlc1ximx96f235c0l8qfs6vbp1kpnbf943wxsfahnnlnxvwi59f"))))
+    (properties `((upstream-name . "nsprcomp")))
+    (build-system r-build-system)
+    (home-page "https://sigg-iten.ch/research/";)
+    (synopsis "Non-negative and sparse PCA")
+    (description
+     "This package implements two methods for performing a constrained
+principal component analysis (PCA), where non-negativity and/or sparsity
+constraints are enforced on the principal axes (PAs).  The function
+@code{nsprcomp} computes one principal component (PC) after the other.  Each
+PA is optimized such that the corresponding PC has maximum additional variance
+not explained by the previous components.  In contrast, the function
+@code{nscumcomp} jointly computes all PCs such that the cumulative variance is
+maximal.  Both functions have the same interface as the @code{prcomp} function
+from the @code{stats} package (plus some extra parameters).")
+    (license license:gpl2+)))
+
 (define-public r-abcoptim
   (package
     (name "r-abcoptim")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]