Skip to content

Commit

Permalink
Merge pull request #1 from egarpor/1.0-6
Browse files Browse the repository at this point in the history
1.0-6
  • Loading branch information
egarpor authored May 19, 2019
2 parents 292ad2d + ad51ac7 commit 9a99a46
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 11 deletions.
2 changes: 0 additions & 2 deletions CRAN-RELEASE

This file was deleted.

7 changes: 3 additions & 4 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: rotasym
Type: Package
Title: Tests for Rotational Symmetry on the Hypersphere
Version: 1.0-5
Date: 2019-05-13
Version: 1.0-6
Date: 2019-05-19
Authors@R: c(
person(given = "Eduardo", family = "García-Portugués",
role = c("aut", "cre"), email = "edgarcia@est-econ.uc3m.es"),
Expand All @@ -19,8 +19,7 @@ License: GPL-3
LazyData: true
Depends:
R (>= 3.4.0),
Rcpp,
RcppZiggurat
Rcpp
Suggests:
rgl,
viridisLite
Expand Down
1 change: 0 additions & 1 deletion NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,5 @@ export(spherical_mean)
export(test_rotasym)
export(w_p)
import(Rcpp)
import(RcppZiggurat)
import(stats)
useDynLib(rotasym)
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@
# rotasym 1.0-5

* Change description field in DESCRIPTION, minor aesthetic changes to examples

# rotasym 1.0-6

* Changes to improve the behaviour of `r_ACG` and `r_unif_sphere` with `base::set.seed`: drop `RcppZiggurat`.
2 changes: 1 addition & 1 deletion R/ACG.R
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ r_ACG <- function(n, Lambda) {
p <- sqrt(length(Lambda))

# Simulation (chol() generates an error if Lambda is not positive definite)
x <- matrix(RcppZiggurat::zrnorm(n = n * p), nrow = n, ncol = p) %*%
x <- matrix(rnorm(n = n * p), nrow = n, ncol = p, byrow = TRUE) %*%
chol(Lambda)

# Projection
Expand Down
2 changes: 1 addition & 1 deletion R/rotasym-package.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#' \emph{arXiv:1706.05030}. \url{https://arxiv.org/abs/1706.05030}
#' @docType package
#' @name rotasym-package
#' @import stats Rcpp RcppZiggurat
#' @import stats Rcpp
#' @useDynLib rotasym
#' @aliases rotasym rotasym-package
NULL
2 changes: 1 addition & 1 deletion R/unif.R
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ r_unif_sphere <- function(n, p) {
} else {

# Project a N_p(0, I_p) to the sphere
x <- matrix(RcppZiggurat::zrnorm(n = n * p), nrow = n, ncol = p)
x <- matrix(rnorm(n = n * p), nrow = n, ncol = p, byrow = TRUE)
return(x / sqrt(rowSums(x * x)))

}
Expand Down
2 changes: 1 addition & 1 deletion inst/CITATION
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ citEntry(entry = "Article",
author = personList(as.person("Eduardo García-Portugués"),
as.person("Davy Paindaveine"),
as.person("Thomas Verdebout")),
journal = "arXiv",
journal = "arXiv:1706.05030",
year = "2019",
volume = "",
number = "",
Expand Down

0 comments on commit 9a99a46

Please sign in to comment.