I basically want to implement equation 7 present in the added image


x_interp = np.linspace(0, 1, 129)

y_interp = interpolation(x_interp,2)



enter image description here


1 Answer 1


It seems you've implemented Eq. 7, provided that var is indeed the fourth order moment.

However, your approximations for pi and e might not be precise enough. To make them more precise, use the numpy implementations.

L = np.sqrt(2*np.pi*np.exp(1)*var) / (1 + np.sqrt(2*np.pi*np.exp(1)*var))

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.