GRANDN

From Jacket Wiki

Jump to: navigation, search
Back to Function List, Jacket Basics

Generates normally distributed pseudorandom numbers. It uses the Mersenne Twister algorithm followed by the Box-Muller transform.

Usage

Jacket for M Language
    Supported Syntax
    
r = grandn(n)
grandn(m,n)
grandn([m,n])
grandn(m,n,p,...)
grandn([m,n,p,...])
grandn
grandn(size(A))
r = grandn(..., 'double')
r = grandn(..., 'single')
 
% new in v1.7
r = randn(..., class(x))
r = randn(..., gdouble)
r = randn(..., gsingle)
 
grandn('state')  % fetch current generator state
grandn('state', scalar_seed)  % re-seed generator
    

GFOR Supported

No

GCOMPILE Supported

No

Types Supported

-  GDOUBLE   GSINGLE 

Types Not Supported

-  GLOGICAL   GINT32   GINT8   GUINT32   GUINT8   COMPLEX 

CPU usageJacket only contains GPU computing functions. To run functions on the CPU, try one of the MathWorks products:
http://www.mathworks.com/help/techdoc/ref/randn.html

Notes

For details on GFOR Support for GRANDN see GFOR Usage: Random Data Generation.

GRANDN emulates the functionality of RANDN.

See Also

GRAND

Views
Personal tools