getCorMat: Create a correlation matrix

Description Usage Arguments Value Examples

View source: R/RcppExports.R

Description

getCorMat returns a correlation matrix

Usage

1
getCorMat(x, rho)

Arguments

x

An n x d matrix.

rho

A vector of length d

Value

An n x n correlation matrix

Examples

1
2
3
4
5
n <- 10
d <- 2
x <- matrix(runif(n * d), ncol = d, nrow = n)
rho <- runif(d, 0, 1)
getCorMat(x, rho)

cbdavis33/bcgpRcpp documentation built on May 25, 2019, 3:25 p.m.