Skip to content

Instantly share code, notes, and snippets.

@Noob-can-Compile
Created February 28, 2020 10:41
Show Gist options
  • Save Noob-can-Compile/cd88e39f9a1c15f8d545c6079f3e6a71 to your computer and use it in GitHub Desktop.
Save Noob-can-Compile/cd88e39f9a1c15f8d545c6079f3e6a71 to your computer and use it in GitHub Desktop.
def predict(mean1, var1, mean2, var2):
''' This function takes in two means and two squared variance terms,
and returns updated gaussian parameters, after motion.'''
# Calculate the new parameters
new_mean = mean1 + mean2
new_var = var1 + var2
return [new_mean, new_var]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment