Logo elodees  elodees

A caring AI for a better world













Only alphabetic characters accented or not as well as the space are accepted

Logo IA




Gaussian





No account yet ?

Sign up to access all content




Tested in Anaconda and Python 3.7

import numpy as np
import matplotlib.pyplot as plt
import math
 
#first some random data
data = np.linspace(-10, 10, 1000)
 
#https://en.wikipedia.org/wiki/Gaussian_filter
def gaussian1d(data, sigma=1):
    gaussian_curve = []
    for row in range(len(data)):
        gaussian_curve.append((1/(math.sqrt(2*math.pi)*sigma)*math.pow(math.e,(-1)*((data[row]**2 )/(2*sigma**2)))))
    return gaussian_curve    
 
sigmas = [0.5,1.0,1.5,2.0,2.5]
 
X = range(len(data))
for sigma in sigmas:
    plt.plot(X, gaussian1d(data, sigma), label='sigma='+str(sigma))
 
plt.legend()
 


ml_research - GitHub



Free image provided by pexel.com












Welcome, my name is Eric Soupet and I am the administrator of the site elodees.com. elodees.com is a state of the art of Artificial Intelligence and aims to be collaborative, you can now offer content such as articles, events, tutorials, ... so don't hesitate !

Platform images credit : Pixabay - Pixabay License | Pexels - Pexels License