0
$\begingroup$

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

interpolation=CubicSpline(x,y)

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

y_interp = interpolation(x_interp,2)

var=np.var(y_interp)

df=((np.sqrt(2*22/7*2.7*var))/(1+np.sqrt(2*22/7*2.7*var)))

enter image description here

$\endgroup$

1 Answer 1

0
$\begingroup$

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))
$\endgroup$

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.