CtoB: Inverse Rosenblatt transformation from the unit hypercube to...

Description Usage Arguments Value Examples

View source: R/transform.R

Description

CtoB maps points on the unit hypercube in p-dimensions, C_p = [0,1]^p, to points on the unit simplex in p-dimensions, B_p.

Usage

1
  CtoB(D, by=ifelse(ncol(D)>2,1e-3,-1), num_proc=parallel:::detectCores())

Arguments

D

An N-by-p matrix representing N points in p-dimensions.

by

Step-size used for approximating integrals.

num_proc

Number of processors to use.

Value

An N-by-p matrix for the inverse-Rosenblatt mapping of D onto the unit ball B_p.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
  ## Not run: 
    # Map the first 100 points of the Sobol' sequence in 3D
    #   onto the unit ball in 3D
    library(randtoolbox)
    des <- sobol(100,3)
    des_ball <- CtoB(des)

    pairs(des_ball,xlim=c(-1,1),ylim=c(-1,1),pch=16)

  
## End(Not run)

Example output

Loading required package: rngWELL
This is randtoolbox. For an overview, type 'help("randtoolbox")'.

minimaxdesign documentation built on July 13, 2021, 1:06 a.m.