Guest User

Untitled

a guest
Jun 24th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. N = 7
  2. d = np.random.rand(N)
  3. K = N+1
  4. M = 16
  5. p = 1
  6.  
  7. f = lambda mu: mu - 1/(K-1)*sum(1/(M*p*d_i*(1-(K-1)/M+(K-1)/M*mu)+1) for d_i in d)
  8.  
  9. mu = np.linspace(-5,5,10000)
  10. plt.grid(True)
  11.  
  12. plt.plot(mu, f(mu))
  13. plt.ylim((-0.5,0.5))
Add Comment
Please, Sign In to add comment