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
1
vote
0 answers

Project [Python 2.7] - 2D Gaussian distribution for three clusters [K-means]

I am new one here and new in python programming so I need some help. I need to make project for faculty about K-means clustering and about 2D Gaussian distribution. I have complete programming for three clusters but I have no idea have to make 2D…
duma91
  • 11
  • 2
0
votes
0 answers

How to calculate spectral density in R without canned function?

// Estimate autocovariance L=ltp_CR(n); gk=acf(x,L,0); gk=(rev(gk)|1|gk).*(x'x/n); is there a way to convert the above code in Gauss to R? Thanks I am planning to calculate the spectral density in R without using canned functions. Unfortunately, I…
0
votes
0 answers

What is the Problem with the CASADI examples for callbacks?

I am currently trying to implement a CasADi callback function into my code but ran into some problems. While trying to find a solution I tried out the examples that are provided on the CasADi website. But all of the exemplary code files throw errors…
Quatsch
  • 1
  • 1
0
votes
1 answer

Probability distribution of results from one, two and more draws

I am learning python and I found something not intuitive from my perspective. I was trying to print Gausses curve, based on output from lottery. In that program I can set draw range, number of draws in one game and number of games. I sum results of…
0
votes
1 answer

Maple error - "illegal use of a formal parameter"

I'M TRYIN TO CREATE A PROGRAM USING MAPLE FOR GAUSSING ELIMINATION BUT I KEEP GETTING THIS ERROR Gauss := proc (n::posint, A::matrix, c::Vector) local a, i, k, j, p; with(MTM): n := linalg[rowdim](A); if det(A) = 0 then…
Chafi Aya
  • 11
  • 1
0
votes
1 answer

How to fit 2 gauss in python

I am a new user of Python. I am trying to fit 2 Gaussians with data but there are some errors in the results. import matplotlib import matplotlib.pyplot as plt import numpy as np import scipy as scipy from scipy import optimize from…
EL-san
  • 29
  • 4
0
votes
0 answers

javascript adding up numbers in sequence returns incorrect number when big numbers are passed

So I was trying to compare the two functions and I realized that when you pass 1000000000 as n to both functions they don't return the same value, even though they should. The sum function returns 500000000067109000 when the correct answer is…
0
votes
0 answers

How to keep a matrix unchanged

I am trying to calculate the inverse matrix using the Gauss-Jordan Method. For that, I need to find the solution X to A.X = I (A and X being N x N matrices, and I the identity matrix). However, for every column vector of the solution matrix X I…
lviveiros
  • 1
  • 1
0
votes
0 answers

Changing a defined constant in a dll compilated file from external application

Please, help me to figure out this. I have the following code in C (example): #define cutoff 22; double age; if (age == cutoff) { cout << "Good morning."; } else { cout << "Good evening."; } This code is built as a .dll file and taken from a…
0
votes
1 answer

Gauss code to R code conversion, for if-else statement

I have this code in Gauss. if prodc((lowerlb2[.,2] .le thxseq[.,2]).*(thxseq[.,2] .le upperlb2[.,2]))==1; count_bb[2,2] = count_bb[2,2] 1; endif; Any help for executing this particular statement in R will be appreciated.
Shreya
  • 159
  • 1
  • 9
0
votes
1 answer

using numpy.polynomial.hermite.hermfit in python for curve fitting to data?

I need some help understanding this numpy function called "numpy.polynomial.hermite.hermfit(x, y, deg, rcond=None, full=False,…
Jerome
  • 49
  • 8
0
votes
1 answer

How to plot Gauss sums?

I'm trying to plot the Gauss sums according to the equation shown in the image s(t), but I keep receiving errors. Can you please show me what am I doing wrong ? %% Fs = 1000; % Sampling frequency T = 1/Fs; %…
0
votes
1 answer

Gauss 21 Software: how do I install the following packages?

I tried running the code: library optmum, pgraph; optset; graphset; and obviously it says I need to install the packages and all but I am not sure where exactly I am supposed to go to find these. I went to the Install application and package manager…
0
votes
1 answer

How do I conditionally call a gauss function in Elasticsearch?

I have a search index for my website which has (among others) the following fields: type title body published_at What I want to do is execute the following gauss function only when type='article': { "gauss": { …
garethwi
  • 33
  • 5
0
votes
0 answers

_tkinter.TclError: couldn't connect to display ":0" in plot

I'm plotting a graph to observe the gaussian distribution. Code: import random import matplotlib.pyplot as plt nums = [] mu = 100 sigma = 50 for i in range(100): temp = random.gauss(mu, sigma) nums.append(temp) plt.plot(nums) …