Docs @ Psychtoolbox Wiki : MultiNormalDraw

Search PTB Function help:
homepsychtoolbox.orgpage updateslogin

MultiNormalDraw

PsychtoolboxPsychProbability

x = MultiNormalDraw(n,u,K)

Make n multivariate normal draws with mean u and covariance matrix K.
Each draw is in a single column of y, which has n columns.

The routine operates by computing the appropriate linear transformation
of a N(0,I) multivariate normal draw. This transformation is given by
y= C'x + u where K = C'C. This works because the covariance of a
distribution y = Cx is in general given by Ky = C Kx C'. In our case
Kx= I so Ky = C'C = K.

K = 0 is handled as a special case




Path   Retrieve current version of MultiNormalDraw.m from berliOS: beta | view WebSVN changelog of trunk branch
Psychtoolbox/PsychProbability/MultiNormalDraw.m


Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.0232 seconds