Statistics Toolbox | ![]() ![]() |
Generate a latin hypercube sample with a normal distribution
Syntax
Description
X = lhsnorm(mu,SIGMA,n)
generates a latin hypercube sample X
of size n
from the multivariate normal distribution with mean vector mu
and covariance matrix SIGMA
. X
is similar to a random sample from the multivariate normal distribution, but the marginal distribution of each column is adjusted so that its sample marginal distribution is close to its theoretical normal distribution.
X = lhsnorm(mu,SIGMA,n,'
controls the amount of smoothing in the sample. If onoff
')
'
onoff
'
is 'off'
, each column has points equally spaced on the probability scale. In other words, each column is a permutation of the values G(0.5/n),
G(1.5/n), ...,
G(1-0.5/n)
where G is the inverse normal cumulative distribution for that column's marginal distribution. If '
onoff
'
is 'on'
(the default), each column has points uniformly distributed on the probability scale. For example, in place of 0.5/n
we use a value having a uniform distribution on the interval (0/n,1/n)
.
See Also
![]() | lhsdesign | lillietest | ![]() |