Created
February 28, 2020 10:41
-
-
Save ksheersaagr/cd88e39f9a1c15f8d545c6079f3e6a71 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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