# Sampling of a gaussian distribution

1. Aug 22, 2011

### matteo86bo

I have a 3d data cube. For every point I measure the property A which is a gaussian variable of mean m and variance s and it's also a function of the density d at every point.
$A(x,y,z)=f(d(x,y,z))e^(-(X-m)^2/(2\sigma^2))$

X is a random number.

Now let's say I want to sample the distribution. I mean, I divide my 3d cube in boxes of size delta X.

What happen to the function f?

2. Aug 22, 2011

### mathman

I'll assume the points are chosen from a Gaussian. If this is a Monte Carlo simulation, then to get an estimate for A, evaluate f.