gaussian

Fastest Gaussian blur implementation

How do you implement the fastest possible Gaussian blur algorithm ? I am going to implement it in Java, so GPU solutions are ruled out. My application planetGenesis is cross platform, so I dont want JNI. ...

Gaussian distributions with PHP on a 24h time period

How can I set points on a 24h period spreaded by the Gaussian distributions? For example to have the peak at 10 o'clock? ...

Random Gaussian Variables

Hi there, does someone of you know if there is a class in the standard library of .net, that gives me the functionality to create random variables that follow a gaussian distribution? Greets Sebastian ...

Best way to write a Python function that integrates a gaussian?

In attempting to use scipy's quad method to integrate a gaussian (lets say there's a gaussian method named gauss), I was having problems passing needed parameters to gauss and leaving quad to do the integration over the correct variable. Does anyone have a good example of how to use quad w/ a multidimensional function? But this led me t...

How is the gaussian filter algorithm work in OpenCV

I write my own gaussian filter but it is really slow. OpenCV's gaussian algorithm is much faster, 20 times than my gaussian filter. I want to rewrite opencv's gaussian algorithm in my project, and I don't want to include opencv in my project. However, Can anyone give me the algorithm description, opencv's source code seems too hard to ...

C++: generate gaussian distribution

Hi, I would like to know if in C++ standard libraries there is any gaussian distribution number generator, or if you have any code snippet to pass. Thanks in advance. ...

Computing the probability for a section of a joint distribution

Considering I have a continuous joint distribution of two independent normal random variables (let's assume the independent vars are on the X and Z axis, and the dependent - the joint probability - is on the Y axis), and I have a line anywhere on the XZ plane, how would I compute the probability of a point falling on one side or the othe...

How to generate normally distributed random from an integer range?

Given the start and the end of an integer range, how do I calculate a normally distributed random integer between this range? I realize that the normal distribution goes into -+ infinity. I guess the tails can be cutoff, so when a random gets computed outside the range, recompute. This elevates the probability of integers in the range, ...

How does a blur gauss algorithm look like? Are there examples of implementation?

I have a bitmap image context and want to let this appear blurry. So best thing I can think of is a gauss algorithm, but I have no big idea about how this kind of gauss blur algorithms look like? Do you know good tutorials or examples on this? The language does not matter so much, if it's done all by hand without using language-specific ...

How to generate Gaussian Channel in C?

I need to simulate a Gaussian Channel in C. How do I do that? Where can I get code snippets for this? ...

Generating a gaussian distribution with only positive numbers

Is there any way to randomly generate a set of positive numbers such that they have a desired mean and standard deviation? I have an algorithm to generate numbers with a gaussian distribution, but I don't know how to deal with negative numbers in a way the preserves the mean and standard deviation. It looks like a poisson distribution...

How do I gaussian blur an image without using any in-built gaussian functions?

I want to blur my image using the native gaussian blur formula. I read this, but I am not sure how to implement this. How do I use the formula to decide weights? [I mentioned MATLAB because I do not want to use any built in fuctions that it has] ...

one Dimensional gauss convolution function in Matlab

Hello, I am trying to write a function that returns a one dimentional gauss filter. the function took sigma as a parameter. The problem is that the function returns the same array for all sigmas. function gaussFilter=gauss(sigma) width = 3 * sigma; support = (-width :sigma: width); gaussFilter= exp( - (support).^2 / (2*sig...

Test if a data distribution follows a Gaussian distribution in MATLAB

Hi I have some data points and their mean point. I need to find whether those data points (with that mean) follows a Gaussian distribution. Is there a function in MATLAB which can do that kind of a test? Or do I need to write a test of my own? I tried looking at different statistical functions provided by MATLAB. I am very new to MATLA...

Generalized Gaussian Noise generator in matlab

I need to create Generalized Gaussian Noise generator in Matlab. GGN is a random signal v of following distribution: v ~ GN(mi, alfa, beta) : p(v; mi, alfa, beta) = (beta/(2*alfa*gamma(1/beta))) * exp(-(abs(v - mi)/alfa).^beta ) Where p is the probablility counted for value v. Note, that gamma is built in Matlab function that comp...

Algorithm to distribute over *part* of a Normal distribution.

Is there a single pass algorithm that can produce numbers distributed over part of a normal (Gaussian) distribution? I want to specify a base value (the center of the distribution), a standard deviation, and a min and max values. For example I might want all values to be distributed between -0.5 and +1 standard deviations in the same r...

Generate a normal distribution graph using C#

Hi, I need to generate a Gaussian graph (bell curve) using a given average and standard deviation. How can this be completed in C#? If it can be completed in Classic ASP - even better :) Thanks, Roman ...

Generating means from a bivariate gaussian distribution

I am reading Elements of Statistical Learning ESLII and in chapter 2, they have a gaussian mixture data set to illustrate some learning algorithms. To generate this data set, they first generate 10 means from a bivariate gaussian distribution N((1,0)', I). I am not sure what they mean? How can you generate 10 means from a bivariate dist...

Coding UnsharpMask without Fourier functions

I am doing some image processing code in C#, but I cant use any libraries or GNU like code. The UnsharpMask function depends on Gaussian blur which in turn depends on Fourier Transforms. I wrote code for all this and things are working, but to make a long story short, I need to remove the FFT functions. Is there any way to perform unsh...

Mesh smoothing with Gaussian

I wish to smooth a given 3D mesh, which uses the Half-Edge structure to store adjacency information, using a Gaussian function. The following is the algorithm that was proposed: Smooth the mesh by moving every vertex to a position determined by a weighted average of its immediate neighbors (with weights determined by a Gaussian...