Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def moment(sample, p, q): #sample is an array of complex values
- m = np.mean((sample**(p-q)) * (np.conjugate(sample)**q))
- return m
- sample = sample/np.power(moment(sample, 2,1), 0.5)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement