Questions tagged [gauss]

This tag is reserved for questions about the GAUSS programming language, not the Gaussian distribution, or any of the hundred other things named after Carl Friedrich Gauss.

44 questions
0
votes
2 answers

How to receive tuple as an argument to a function in python 3?

I have some code that was working fine in python2. I need to translate it to python3. There is one piece of it that I can't understand how to adapt. Here is some code. Function with error def gauss((x, y), x0, y0, intens, sigma): return…
Igor Kolesnikov
  • 133
  • 1
  • 8
0
votes
1 answer

How to set variable to not fit it

I want to fit Gauss, but variables cen and cen2 must be constantly. from pylab import * import matplotlib.mlab from lmfit import Model def gaussian(x, amp, cen, wid,amp2,cen2,wid2): return (amp/(sqrt(2*pi)*wid)) * exp(-(x-cen)**2…
Kinga Jn
  • 11
  • 2
0
votes
1 answer

Fitting a gaussian function to set of points

In order to find the FWHM I need to find a Gaussian f corresponding to a set of (x,f(x)) values. The available fitting methods (I'm restricted to C#) assume the solution to be a polynomium of n'th degree (or that's what I've been able to find so…
beyond
  • 451
  • 2
  • 15
0
votes
3 answers

Project Euler #1 in Java - Why result correct although rounded down?

"Find the sum of all the multiples of 3 or 5 below 1000" I am having problems with understanding why the solution below still returns the correct result because x3, x5 and x15 use int after division. That means that the result of the division is…
lioli
  • 191
  • 1
  • 13
0
votes
0 answers

Gaussian filter applied to BMP in C

I'm trying to write a code that filters bitmap through Gaussian and some other filters. I have developed a code which generates kernel depending on input parameters such as kernel size and standard deviation. I have also written a code which parses…
0
votes
1 answer

Gauss Elimination Method Assembly MIPS

The program should take into account the following functionality: The 2D array with the system to solve is passed to the program as an existing variable memory. - The data is of type double float. -The program should save the result in another…
0
votes
0 answers

I've been working on this code and I get the following error

This code is for the gauss elimination that works with a matrix and I can't understand why the following error appears on screen. def elimGauss(A,m,n): for k in range(n-1): for i in range(k+1,n): p = -A[i][k] / (A[k][k]) …
0
votes
1 answer

How do I create a t x nk matrix file for Gauss

I would like to use a panel data econometric test that is implemented in the Gauss statistical software. With the R package MASS::write.matrix I have managed to generate an ASCII file and read the file from within Gauss. This worked well for t x n…
Paul Rougieux
  • 10,289
  • 4
  • 68
  • 110
-1
votes
1 answer

Generate dataframe using Gauss law

I would like to generate a dataframe. In this dataframe, the column "Date" using the timestamp has to be randomly generated. I would like to generate it using the gauss-law. I know the function random.gauss() and I have this code : from faker import…
Jonah
  • 3
  • 2
-1
votes
2 answers

Unit of a gaussian smoothing of an image

I had a raster with values from 0 to 0,3 which I transformed into an image. Then i gave all values <=0.3 the value 1. I thought it makes it easier if i calculate this for a single value. I applied Gaussian smoothing to the image and then converted…
Maik
  • 1
  • 1
-1
votes
1 answer

java remove gaussian noise

I am trying to write a program that would remove noise from an image with a Gaussian filter. I am trying to write the following code: public class Main { public static void main(String[] args) { File file = new…
rulila52
  • 111
  • 1
  • 6
-1
votes
1 answer

Compute the equilibrium probabilities of the Markov chain using Jacobi Iteration in Python

I am trying to compute a function that calculates the equilibrium probabilities of a Markov chain. For this problem, is have already got my transition matrix. Now I am trying to define a function called Jacobi but confused about the most effective…
-2
votes
2 answers

Python gaussian fit with same color as bars of histogram

I use the functions plot() and hist() from pyplot (without any color definition) to generate the following graphic: There will be even more data sets included. That's why I want to use the same color for fit curve and the related histogram, to keep…
-3
votes
1 answer

is it possible to write a program that can find zeros of a certain function?

In Gauss-legendre integration we need to find zeros of the legendre function but i can't find a way to write code that enable me to do that? I understand there are list of "xi"s out there by which this function equals to zero but can we write…
1 2
3