UtoX: Iso-probabilistic transformation from U space to X space

Description Usage Arguments Details Value Author(s) References See Also Examples

View source: R/UtoX.R

Description

UtoX performs as iso-probabilistic transformation from standardized space (U) to physical space (X) according to the NATAF transformation, which requires only to know the means, the standard deviations, the correlation matrix ρ(Xi,Xj) = ρ_{ij} and the marginal distributions of Xi. In standard space, all random variables are uncorrelated standard normal distributed variables whereas they are correlated and defined using the following distribution functions: Normal (or Gaussian), Lognormal, Uniform, Gumbel, Weibull and Gamma.

Usage

1
 UtoX(U, input.margin, L0) 

Arguments

U

a matrix containing the realisation of all random variables in U-space

input.margin

A list containing one or more list defining the marginal distribution functions of all random variables to be used

L0

the lower matrix of the Cholesky decomposition of correlation matrix R0 (result of ModifCorrMatrix)

Details

Supported distributions are :

Value

X

a matrix containing the realisation of all random variables in X-space

Author(s)

gilles DEFAUX, gilles.defaux@cea.fr

References

See Also

ModifCorrMatrix, ComputeDistributionParameter

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
 
Dim = 2

distX1 <- list(type='Norm',  MEAN=0.0, STD=1.0, P1=NULL, P2=NULL, NAME='X1')
distX2 <- list(type='Norm',  MEAN=0.0, STD=1.0, P1=NULL, P2=NULL, NAME='X2')

input.margin <- list(distX1,distX2)
input.Rho    <- matrix( c(1.0, 0.5,
                          0.5, 1.0),nrow=Dim)
input.R0     <- ModifCorrMatrix(input.Rho)
L0           <- t(chol(input.R0))

lsf = function(U) {   
    X <- UtoX(U, input.margin, L0)
    G <- 5.0 - 0.2*(X[1,]-X[2,])^2.0 - (X[1,]+X[2,])/sqrt(2.0)
    return(G)
}

u0 <- as.matrix(c(1.0,-0.5))
lsf(u0)

mistral documentation built on April 19, 2021, 1:06 a.m.