:orphan: # PetscPDFSampleGaussian2D Sample uniformly from a Gaussian distribution in 2D ## Synopsis ``` #include "petscdt.h" PetscErrorCode PetscPDFSampleGaussian2D(const PetscReal p[], const PetscReal dummy[], PetscReal x[]) ``` Not Collective ## Input Parameters - ***p -*** A uniform variable on [0, 1]^2 - ***dummy -*** ignored ## Output Parameter - ***x -*** Coordinate in [-\infty, \infty]^2 Note: https://en.wikipedia.org/wiki/Box%E2%80%93Muller_transform ## See Also `PetscPDFGaussian2D()`, `PetscPDFMaxwellBoltzmann3D()` ## Level beginner ## Location src/dm/dt/interface/dtprob.c --- [Edit on GitLab](https://gitlab.com/petsc/petsc/-/edit/release/src/dm/dt/interface/dtprob.c) [Index of all DT routines](index.md) [Table of Contents for all manual pages](/manualpages/index.md) [Index of all manual pages](/manualpages/singleindex.md)