SHARE
TWEET

Untitled

a guest Oct 23rd, 2019 75 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def pdf(s1, s2, mu1, mu2, sig1, sig2, theta):
  2.     val1 = -(((s1-mu1)*np.cos(theta) - (s2-mu2)*np.sin(theta))**2)/(2*sig1**2)
  3.     val2 = -(((s1-mu1)*np.sin(theta) + (s2-mu2)*np.cos(theta))**2)/(2*sig2**2)
  4.     val3 = - np.log(sig1*sig2)
  5.     return np.exp(val1 + val2 + val3)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top