PetscPDFSampleGaussian2D#
Sample uniformly from a Gaussian distribution in 2D https://en.wikipedia.org/wiki/Box–Muller_transform
Synopsis#
#include "petscdt.h"
PetscErrorCode PetscPDFSampleGaussian2D(const PetscReal p[], const PetscReal dummy[], PetscReal x[])
Not Collective
Input Parameters#
p - A uniform variable on
dummy - ignored
Output Parameter#
x - Coordinate in
See Also#
Level#
beginner
Location#
Index of all DT routines
Table of Contents for all manual pages
Index of all manual pages