gaussian Questions

3

How can I plot a gaussian fit onto a histplot, as previously done by the deprecated distplot? import seaborn as sns import numpy as np from scipy.stats import norm x = np.random.normal(size=500) * ...
Wojak asked 31/10, 2020 at 11:57

3

I want to take data from excel and plot 2D kernel density estimate in python, but it says "ValueError: too many values to unpack (expected 2)". how to fix it? following the coding: # libr...
Diena asked 9/5, 2021 at 13:10

10

Solved

I want to be able to pick values from a normal distribution that only ever fall between 0 and 1. In some cases I want to be able to basically just return a completely random distribution, and in ot...
Lovash asked 26/8, 2013 at 10:16

2

I find on the OpenCV documentation for cvSmooth that sigma can be calculated from the kernel size as follows: sigma = 0.3(n/2 - 1) + 0.8 I would like to know the theoretical background of this equ...
Decoupage asked 27/12, 2012 at 19:17

5

Solved

I have a set of frequency data with peaks to which I need to fit a Gaussian curve and then get the full width half maximum from. The FWHM part I can do, I already have a code for that but I'm havin...
Imbecilic asked 8/11, 2012 at 14:4

2

Solved

I am trying to obtain a double Gaussian distribution for data (link) using Python. The raw data is of the form: For the given data, I would like to obtain two Gaussian profiles for the peaks see...
Bologna asked 16/10, 2015 at 20:10

4

Solved

I am using scipys gaussian_kde to get probability density of some bimodal data. However, as my data is angular (it's directions in degrees) I have a problem when values occur near the limits. The c...
Chloramphenicol asked 3/3, 2015 at 18:28

2

Solved

I am trying to use SciPy's gaussian_kde function to estimate the density of multivariate data. In my code below I sample a 3D multivariate normal and fit the kernel density but I'm not sure how to ...
Antiknock asked 20/2, 2014 at 20:14

4

Solved

When applying a Gaussian blur to an image, typically the sigma is a parameter (examples include Matlab and ImageJ). How does one know what sigma should be? Is there a mathematical way to figure o...
Hollywood asked 30/6, 2010 at 12:36

21

Solved

I want to know if the JavaScript function Math.random uses a normal (vs. uniform) distribution or not. If not, how can I get numbers which use a normal distribution? I haven't found a clear answer...
Stacte asked 30/8, 2014 at 13:30

6

Solved

I have a table of let's say 250 URLs : create table url ( id serial, url varchar(64) ) These URLs correspond each to a website. Each of the websites have a different popularity. Let's say that...
Spagyric asked 24/2, 2012 at 13:55

8

Solved

My question is very close to this question: How do I gaussian blur an image without using any in-built gaussian functions? The answer to this question is very good, but it doesn't give an example ...
Subminiaturize asked 20/11, 2011 at 20:54

3

I want to drop all NaN variables in one of my columns but when I use df.dropna(axis=0, inplace=True) it erases my entire dataframe. Why is this happening? I've used both df.dropna and df.dropna(a...
Darkling asked 3/4, 2019 at 14:53

4

I have a function compare_images(k, a, b) that compares two 2d-arrays a and b Inside the funcion, I apply a gaussian_filter with sigma=k to a My idea is to estimate how much I must to smooth image...
Pleurisy asked 9/12, 2013 at 19:25

4

Solved

I've been hunting for a convenient way to sample from a multivariate normal distribution. Does anyone know of a readily available code snippet to do that? For matrices/vectors, I'd prefer to use Bo...

5

Solved

In a project I'm working on I need to obtain a Gaussian fit from a set of points - needing mean and variance for some processing, and possibly an error degree (or accuracy level) to let me figure o...
Wherewith asked 12/10, 2011 at 14:40

4

Solved

I want to use sklearn.mixture.GaussianMixture to store a gaussian mixture model so that I can later use it to generate samples or a value at a sample point using score_samples method. Here is an ex...
Pheon asked 22/2, 2017 at 13:30

3

I have created and sampled a jointly Gaussian prior with mean=0 using the code below: import numpy as np import matplotlib.pyplot as plt from math import pi from scipy.spatial.distance import cd...
Mola asked 27/11, 2017 at 18:8

2

I have weather data available for about 6 weather stations. For all these stations I have the longitude and latitude available, and also the datetime (every 10 minutes from beginning of 2016 or so)...
Docile asked 17/5, 2018 at 8:56

3

This code below is suppose to run a bayes classifier for a full covariance gaussian (http://courses.ee.sun.ac.za/Pattern_Recognition_813/lectures/lecture03/node2.html), but I get two errors when I ...
Paolapaolina asked 8/4, 2017 at 22:45

3

Solved

I'm currently using scikit-learn's GaussianNB package. I've noticed that I can choose to return results for the classification several different ways. One way to return a classification is using t...
Combat asked 2/12, 2013 at 19:9

3

Solved

One of my algorithms performs automatic peak detection based on a Gaussian function, and then later determines the the edges based either on a multiplier (user setting) of the sigma or the 'full wi...
Swirsky asked 12/12, 2017 at 12:54

1

I need to generate, say 2000 samples of 2D multivariate Gaussian distribution with mean [2;3] and covaraince C = [0.2 0; 0 0.3] in Julia. Is it possible to do it using MvNormal function from Distri...

7

Solved

I can generate Gaussian data with random.gauss(mu, sigma) function, but how can I generate 2D gaussian? Is there any function like that?
Downspout asked 7/10, 2011 at 13:5

4

Solved

I have managed to find online how to overlay a normal curve to a histogram in R, but I would like to retain the normal "frequency" y-axis of a histogram. See two code segments below, and notice how...
Corporator asked 19/11, 2013 at 17:30

© 2022 - 2024 — McMap. All rights reserved.