Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  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)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement