mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
gnu: Add r-zvcv.
* gnu/packages/cran.scm (r-zvcv): New variable.
This commit is contained in:
parent
505d6716d0
commit
11ab52888d
1 changed files with 34 additions and 0 deletions
|
@ -20603,3 +20603,37 @@ (define-public r-zyp
|
|||
Yue-Pilon's (Yue, 2002) pre-whitening approaches to determining trends in
|
||||
climate data.")
|
||||
(license license:lgpl2.1)))
|
||||
|
||||
(define-public r-zvcv
|
||||
(package
|
||||
(name "r-zvcv")
|
||||
(version "1.0.0")
|
||||
(source
|
||||
(origin
|
||||
(method url-fetch)
|
||||
(uri (cran-uri "ZVCV" version))
|
||||
(sha256
|
||||
(base32
|
||||
"1npw836q2skx54843lgxvb0rfwafckjc8k8dljykm60ad3z7zak8"))))
|
||||
(properties `((upstream-name . "ZVCV")))
|
||||
(build-system r-build-system)
|
||||
(propagated-inputs
|
||||
`(("r-abind" ,r-abind)
|
||||
("r-glmnet" ,r-glmnet)
|
||||
("r-mvtnorm" ,r-mvtnorm)
|
||||
("r-partitions" ,r-partitions)
|
||||
("r-rcpp" ,r-rcpp)
|
||||
("r-rcpparmadillo" ,r-rcpparmadillo)))
|
||||
(home-page "https://cran.r-project.org/web/packages/ZVCV/")
|
||||
(synopsis "Zero-Variance Control Variates")
|
||||
(description
|
||||
"@dfn{Zero-variance control variates} (ZV-CV) is a post-processing method
|
||||
to reduce the variance of Monte Carlo estimators of expectations using the
|
||||
derivatives of the log target. Once the derivatives are available, the only
|
||||
additional computational effort is in solving a linear regression problem.
|
||||
This method has been extended to higher dimensions using regularisation. This
|
||||
package can be used to easily perform ZV-CV or regularised ZV-CV when a set of
|
||||
samples, derivatives and function evaluations are available. Additional
|
||||
functions for applying ZV-CV to two estimators for the normalising constant of
|
||||
the posterior distribution in Bayesian statistics are also supplied.")
|
||||
(license license:gpl2+)))
|
||||
|
|
Loading…
Reference in a new issue