Help with the 3D gaussian function

In summary, the Gaussian function in 3D is represented by the formula z=A*exp((x-xo)^2/(2σx^2)+(y-yo)^2/(2σy^2)), where A is the amplitude and xo,yo are the center coordinates. The values of σx and σy determine the spread of the function, and can be found graphically using the FWHM method. The function extends to +/-infinity in both x and y directions, but is typically only plotted from -3 to 3 for visual clarity.
  • #1
PythagoreLove
19
0
Hi,
I need help with the gaussian function in 3D. I'm using the form:
z=A*exp( (x-xo)^2/(2σx^2)+(y-yo)^2/(2σy^2))

I know that A is the amplitude and xo,yo are the center coordinate.

I found that formula on http://en.wikipedia.org/wiki/Gaussian_function and they say that σx and σy are the spread of the blob. But if I put σx=σy=1, the function is from -3 to 3... Why is that ?
 
Physics news on Phys.org
  • #2
They only plotted it from -3 to 3. It extends to +/-infinity in both x and y, but once |x-x0|/sigmax is much larger than 3.0, the value of the function is very close to zero.
 
  • #3
But is there a pretty good way to find σx and σy, graphically speaking. I have a gaussian curve and want to find what is the function.
 
  • #4
A good way is to use FWHM(Full Width at Half Maximum). In other words, you measure the width of the curve at half of the peak value. This is then easily converted into sigma using the formula on this page:

http://en.wikipedia.org/wiki/Fwhm

Since you have a 2D Gaussian, you need to measure the FWHM in the x-direction with y=y0 to find sigmax, then do the same in the y-direction with x=x0 to find sigmay.
 
  • #5


Hello, thank you for reaching out for assistance with the 3D gaussian function. I would be happy to help you understand the formula and why it may produce a range from -3 to 3 when σx=σy=1.

First, let's break down the formula and understand what each component represents. The gaussian function is a mathematical function commonly used in statistics and physics to describe the distribution of data. In the context of 3D, it is used to describe the distribution of data in three dimensions, with x, y, and z coordinates.

The formula you provided is a specific form of the gaussian function that includes the amplitude (A), center coordinates (xo, yo), and spread (σx, σy). The amplitude represents the maximum value of the function, while the center coordinates represent the location of the peak of the function. The spread, also known as the standard deviation, determines the width of the function's curve.

When σx=σy=1, this means that the spread is equal in both the x and y directions. This results in a symmetrical distribution, with a range from -3 to 3 in both the x and y directions. This is because the formula is exponential, meaning that as the distance from the center coordinates increases, the value of the function decreases rapidly. This leads to a range that is limited to -3 to 3 in both directions.

If you would like to change the range of the function, you can adjust the spread (σx, σy) to be larger or smaller than 1. A larger spread will result in a wider distribution, while a smaller spread will result in a narrower distribution. This will change the range of the function accordingly.

I hope this helps to clarify the 3D gaussian function for you. If you have any further questions, please don't hesitate to ask. I am always happy to help others understand complex concepts. Best of luck with your research!
 

1. What is a 3D gaussian function?

A 3D gaussian function is a mathematical function that is commonly used to represent the distribution of a continuous variable. It is often used in scientific fields such as physics, chemistry, and engineering to model phenomena that follow a normal distribution.

2. How is a 3D gaussian function related to a normal distribution?

A 3D gaussian function is a three-dimensional version of a normal distribution. It is a bell-shaped curve that is symmetrical around the mean, with the majority of the data falling within one standard deviation from the mean. The higher the peak of the curve, the more concentrated the data is around the mean.

3. What are the parameters of a 3D gaussian function?

The parameters of a 3D gaussian function include the mean, variance, and amplitude. The mean represents the center of the curve, the variance controls the width of the curve, and the amplitude determines the height of the curve.

4. How is a 3D gaussian function used in data analysis?

3D gaussian functions are commonly used in data analysis to fit data to a curve and extract useful information such as the mean, standard deviation, and confidence intervals. They can also be used to filter out noise and identify outliers in the data.

5. Are there any limitations to using a 3D gaussian function?

While 3D gaussian functions are useful for modeling many types of data, they may not be suitable for all situations. For example, if the data is not normally distributed, a different type of function may be more appropriate. Additionally, if the data has multiple peaks or is highly skewed, a 3D gaussian function may not accurately represent the distribution.

Similar threads

  • Programming and Computer Science
Replies
9
Views
4K
  • Advanced Physics Homework Help
Replies
1
Views
812
  • Set Theory, Logic, Probability, Statistics
Replies
2
Views
1K
  • General Math
Replies
3
Views
2K
  • Other Physics Topics
Replies
5
Views
2K
Replies
5
Views
1K
  • Introductory Physics Homework Help
Replies
1
Views
1K
  • Set Theory, Logic, Probability, Statistics
Replies
4
Views
8K
  • Calculus and Beyond Homework Help
Replies
2
Views
487
Back
Top