Skip to main content
`Ctrl`+`K`

# PetscPDFSampleGaussian3D

Sample uniformly from a Gaussian distribution in 3D https://en.wikipedia.org/wiki/Box–Muller_transform

## Synopsis

    #include "petscdt.h"
    PetscErrorCode PetscPDFSampleGaussian3D(const PetscReal p[], const PetscReal unused[], PetscReal x[])

Not Collective

## Input Parameters

- p - A uniform variable on \([0, 1]^3\)

- unused - ignored

## Output Parameter

- x - Coordinate in \([-\infty, \infty]^3\)

## See Also

`PetscPDFGaussian3D()`, `PetscPDFMaxwellBoltzmann3D()`

## Level

beginner

## Location

src/dm/dt/interface/dtprob.c

Index of all DT routines
Table of Contents for all manual pages
Index of all manual pages