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.
Questions tagged [gauss]
44 questions
5
votes
3 answers
How to print Gaussian curve fitting results?
It took me some time but I have used the code below to create myself a Gaussian fit for my x,y data set.
import matplotlib.pyplot as plt
import numpy as np
from scipy.optimize import curve_fit
def Gauss(x, a, x0, sigma, offset):
return a *…

NapolyoN
- 337
- 3
- 12
5
votes
1 answer
Hessian Matrix in Maximum Likelihood - Gauss vs. R
I am struggling with the following problem. In a nutshell: Two different software packages (Gauss by Aptech and R) yield totally different Hessian Matrices in a Maximum Liklihood Procedure. I am using the same procedure (BFGS), the exact same data,…

timsad
- 51
- 2
4
votes
1 answer
Why p(z) is normal gaussian in Variational autoencoder?
In variational autoencoder, objective function has two terms, the one which makes input and output x same, and the other one regularizer, q(z) and p(z) to be close by KL divergence.
What I doN't understand is why we can assume that p(z)~Normal…

user3204761
- 59
- 2
4
votes
1 answer
GAUSS to R code conversion
I've gotten a MLE estimator that is written in GAUSS that I am trying to re-code into R. I do not use, nor have I ever used GAUSS itself (and do not have access to it). In the code, there is a line that is a bit confusing to me.
In the validated…

Tony
- 149
- 1
- 9
3
votes
1 answer
How does gauss laguerre integration works for large limits?
I would like to know how the gauss laguerre works for large limits. For example,
I have a 2D function going from (0, +inf) in both dimensions. When I use gauss
laguerre in python by sampling the function with weights and abscissas by summing them…

user3840530
- 290
- 1
- 4
- 14
2
votes
1 answer
Python Gauss Elimination
Super New to programming and still learning how to debug. Every time I run this program for Gauss elimination I get
"line 16, in GaussElim
tmp=A[maxRow][k]
IndexError: list index out of range"
I think it mean the code is stepping over the…

James
- 21
- 1
- 2
2
votes
2 answers
Gauss-Seidel Method in MATLAB
I am trying to implement the Gauss-Seidel method in MATLAB. But there are two major mistakes in my code, and I could not fix them:
My code converges very well on small matrices, but it never converges on large matrices.
The code makes redundant…

Aldrich Taylor
- 41
- 1
- 1
- 7
2
votes
2 answers
Create N-Dimensional normal distribution from single ones (in python)
Is there a general solution for this? You have to multiply them, but it is hard to implement.
For the 2 Dimensional case you can use the outer product of the two vector representing single normal distributions.

Dániel Terbe
- 105
- 1
- 10
1
vote
1 answer
Maple, writing a Proc to caculate inverse of a Matrix
so i am working on a Problem which has two parts. I did finish part one with help of :this useful Forum. Some body already tried to do the first part of the problem and i took their code.
To the Problem:
Write a proc ( here i named it "reduced" )…

El magnifico
- 23
- 5
1
vote
1 answer
Gauss elimination with pivoting in python
This is my code with gauss algorithm and it seems work in "def MEG", but in "def MEGPivoting" when i try to exchanges my rows with the gauss algorithm with pivoting and i print the new matrix, it printed the seems matrix like the original. Why?
Is…

Fabio Palladino
- 23
- 8
1
vote
1 answer
Appending Gauss to array
I am trying to write code that appends to array values of Gauss probability density function. I managed to write this (based on appending to lists):
N=100
U = numpy.array([])
for i in range(0, N):
n = random.random()
numpy.append(U,n)
for i…

Edvaeli
- 11
- 2
1
vote
1 answer
How to Fix LU Decompostion?
I wrote the code according to the algorithm, but the result is incorrect. According to the algorithm, we must indicate the dimension of the matrix and manually fill in the main matrix A and vector B. We need to generate an LU matrix. It is…

Jeka X
- 19
- 3
1
vote
0 answers
Gauss-based Linear Independence Test for Binary vectors
I programmed a version of Gaussian Elimination to verify linear independence of a set of Binary vectors. It inputs a matrix (mxn) to evaluate and return:
True (Linear Independent): No zero row was found.
False (Linear Dependent): If the last row…

mitxael
- 52
- 7
1
vote
0 answers
How can I better fit double Gauss
How can I better fit double Gauss? I care about small y-data. I need to very accurate result.
import pandas as pd
import numpy as np
import matplotlib
import matplotlib.pyplot as plt
from sklearn import mixture
from pylab import *
import…

Kinga Jn
- 11
- 2
1
vote
0 answers
Gauss Projection calculate
enter image description here
enter image description here
This is my code:
public class Test {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("Test ");
…

guodada1206
- 35
- 6