Horje
2d gaussian function python Code Example
2d gaussian function python
import numpy as np

grid_x, grid_y = np.mgrid[-2:2:50j, -2:2:50j]
A = 1 # Gaussian height
x_0, y_0 = 0, 0 # Gaussian centers
sigma_x, sigma_y = 0.5, 0.5

gaussian_2D = A * np.exp(-(((grid_x - x_0)**2 / (2 * sigma_x**2)) + ((grid_y - y_0)**2 / (2 * sigma_y**2))))




Python

Related
how to execute more than one line of code in one line python Code Example how to execute more than one line of code in one line python Code Example
%Y-%m-%dT%H:%M:%SZ convert to date time object Code Example %Y-%m-%dT%H:%M:%SZ convert to date time object Code Example
bot that only responds to certain roles discord.py Code Example bot that only responds to certain roles discord.py Code Example
how to change case of string in python Code Example how to change case of string in python Code Example
pandas get cvvlaue from antoiher column fom one coluikmnn value Code Example pandas get cvvlaue from antoiher column fom one coluikmnn value Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7