R/Gen_R.R

Defines functions Gen_R

Documented in Gen_R

#' @title Generate an array of random rotation matrices
#' @param p p*p matrix
#' @param nr number of matrices
#' @export
#'
Gen_R=function(p,nr){
  mats=array(dim = c(p,p,nr))
  for (ir in 1:nr) {
    mats[,,ir]=Rmat(p)
  }
  return(mats)
}
DongyueXie/bCART documentation built on Feb. 4, 2020, 12:26 a.m.