Daniel@0: Daniel@0: Daniel@0: Daniel@0: Netlab Reference Manual demgauss Daniel@0: Daniel@0: Daniel@0: Daniel@0:

demgauss Daniel@0:

Daniel@0:

Daniel@0: Purpose Daniel@0:

Daniel@0: Demonstrate sampling from Gaussian distributions. Daniel@0: Daniel@0:

Daniel@0: Synopsis Daniel@0:

Daniel@0:
Daniel@0: demgauss
Daniel@0: 
Daniel@0: Daniel@0: Daniel@0:

Daniel@0: Description Daniel@0:

Daniel@0: Daniel@0:

demgauss provides a simple illustration of the generation of Daniel@0: data from Gaussian distributions. It first samples from a Daniel@0: one-dimensional distribution using randn, and then plots a Daniel@0: normalized histogram estimate of the distribution using histp Daniel@0: together with the true density calculated using gauss. Daniel@0: Daniel@0:

demgauss then demonstrates sampling from a Gaussian distribution Daniel@0: in two dimensions. It creates a mean vector and a covariance matrix, Daniel@0: and then plots contours of constant density using the function Daniel@0: gauss. A sample of points drawn from this distribution, obtained Daniel@0: using the function gsamp, is then superimposed on the contours. Daniel@0: Daniel@0:

Daniel@0: See Also Daniel@0:

Daniel@0: gauss, gsamp, histp
Daniel@0: Pages: Daniel@0: Index Daniel@0:
Daniel@0:

Copyright (c) Ian T Nabney (1996-9) Daniel@0: Daniel@0: Daniel@0: Daniel@0: