Skip to content

Instantly share code, notes, and snippets.

@Noob-can-Compile
Created February 28, 2020 11:15
Show Gist options
  • Save Noob-can-Compile/9398dadbddec4bc83fa6bf79ea80d5bd to your computer and use it in GitHub Desktop.
Save Noob-can-Compile/9398dadbddec4bc83fa6bf79ea80d5bd to your computer and use it in GitHub Desktop.
## Print out and display the final, resulting Gaussian
# set the parameters equal to the output of the Kalman filter result
mu = mu
sigma2 = sig
# define a range of x values
x_axis = np.arange(-20, 20, 0.1)
# create a corresponding list of gaussian values
g = []
for x in x_axis:
g.append(f(mu, sigma2, x))
# plot the result
plt.plot(x_axis, g)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment