Questions tagged [gaussian]

For issues related to any of the uses of the Gaussian function. Don't forget to add additional tags to clarify the context.

The graph of a Gaussian is a characteristic symmetric "bell curve" shape that quickly falls off towards plus/minus infinity. The 1-D Gaussian is defined as (taken from wikipedia):

gaussian function from wikipedia

The parameter a is the height of the curve's peak, b is the position of the centre of the peak, and c controls the width of the "bell".

In multiple dimensions, the Gaussian is defined as the product of 1D curves along each dimension.

Gaussian functions are widely used in statistics where they describe the normal distributions, in signal processing where they serve to define Gaussian filters, in image processing where two-dimensional Gaussians are used for Gaussian blurs, in mathematics and physics where they are used to solve heat equations and diffusion equations, to formulate the propagation of optical beams (Gaussian beams), to from a basis set of wavefunctions, to define the Weierstrass transform, and many more.

1812 questions
0
votes
2 answers

Gaussian noise,MATLAB

The objective is to add additive gaussian noise of zero mean and variance of 400 to an image. For example, if i wanted to add additive gaussian noise of zero mean and variance 0.5, i can use one of the two following methods: 1) The imnoise command…
Arun
  • 65
  • 1
  • 9
0
votes
2 answers

Gaussian Elimination over GF(3)

I'm trying to implement a gaussian algorithm that would work over Galois Field(3). I've already successfully implemented the algorithm over GF(2) but GF(3) seems a bit more tricky. My main problem is : when the value of the pivot line i've chosen is…
FreeRide
  • 27
  • 4
0
votes
0 answers

Function to solve a system using Gauss-Seidel

I'm trying to write a function in order to solve a system of equations using the Gauss-Seidel method. The function I have so far doesn't do the job. The code stops giving me output after "Enter an initial guess..." and doesn't solve the function I'm…
DanielRossi
  • 67
  • 3
  • 13
0
votes
1 answer

Python Fit a gaussian to an incomplete array of data

I have an array of data that, when plotted, plateaus at the maximum values. I would like to generate a gaussian fit for this data so I can have a rough approximation of what the data would be without a plateau. This is what the data looks like: I…
SamB
  • 23
  • 3
0
votes
1 answer

Generating random data in python fitting given function

I want to generate data in python as if it was some experimental points. I want to get noisy exponential decrease, with noise and it's errors normally distributed. Like this picture, but exponential: noisy polynomial data. Will it be okay if I…
Dankevich
  • 194
  • 2
  • 12
0
votes
0 answers

Making reference to specific values on x-axis of graph, in order to histogram and perform gaussian on specific components

I'm attempting to perform a Gaussian on a small portion of my histogrammed data. I understand how to make reference to the indices on the x-axis by using the ":". However I would like to examine the specific values which lie between a specific…
J.Doe
  • 1
  • 1
  • 1
0
votes
1 answer

Gaussian fit in log-log space

Would anything have to be changed in the answer for Gaussian fit for Python to fit data in log-log space? Specifically, for both x and y data covering several orders of magnitude and this code snippet: from scipy.optimize import curve_fit from scipy…
AstroLorraine
  • 27
  • 1
  • 4
0
votes
1 answer

Gaussian Process Model with Noise: ValueError: nugget must be either a scalar or array of length n_samples

I am building a Categorization model using a Gaussian Process with Noise - I don't understand why it is failing with a Value Error I have a data set with about 10% labeled as a target of 1 or 0. I am trying to predict the probability of the other…
FJB
  • 1
  • 1
0
votes
1 answer

My Gaussian 2D template is not returning the correct values

I am writing a piece of java code that given a width, height and sigma value will return a 2D Gaussian template that I will then be able to convolve with another image. Here is the Gaussian 2D equation: Now I am simplyfying this to something like…
user5157717
0
votes
0 answers

Fitting 2D gaussian surface in R

Is it possible to fit a 2D gaussian surface to a data (of form x,y,z) in R, using the equation: t=c*exp(-(x-x0)^2/(2*sigmax^2)-(y-y0)^2/(2*sigmay^2)) As it can be done in Matlab…
rar
  • 894
  • 1
  • 9
  • 24
0
votes
1 answer

The size of an array created from np.random.normal

I am using the numpy's random.normal routine to create a Gaussian with a given mean and standard deviation. array_a = an array of len(100) gaussian = np.random.normal(loc=array_a,scale=0.1,size=len(2*array_a)) So I expect the gaussian to have a…
Srivatsan
  • 9,225
  • 13
  • 58
  • 83
0
votes
0 answers

Monogame Gaussian Blur Effect Results in solid color texture2D

I am developing a game in monogame and recently converted from XNA, and my blur effect stopped working. After successfully getting it to run without errors (and not changing any of the code logic) images that should be blurred turn into a solid…
0
votes
2 answers

How to plot a Gaussian function on Python?

I have a datafile like this Frequencies -- 95.1444 208.5295 256.0966 IR Inten -- 4.5950 0.1425 2.4807 Frequencies -- 273.7203 424.4748 446.9433 …
Martín Garro
  • 31
  • 1
  • 3
0
votes
1 answer

Spark Gaussian Mixture Data Type

What is the data format that the Gaussian Mixture Model in spark needs ? Should the data be in a vector format , RDD or which type?
user5278075
0
votes
0 answers

Python : Gaussian Process Regression and GridSearchCV

I am working on Gaussian Process Regression with Python on NIR spectrum data. I can get some results with GPR and would like to optimize parameters for GPR. I am trying to use GridSearchCV to optimize parameters, but I keep getting an error and…