Guest User

All matrix method

a guest
Jul 25th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. def PDF2(size, states,b, J):
  2. density_func = np.diag(np.dot(np.dot(states, J), states.T))
  3. density_func = density_func + np.dot(states, b)
  4. density_func = np.exp(density_func)
  5. density_func = density_func/np.sum(density_func)
  6.  
  7. return density_func
Add Comment
Please, Sign In to add comment