Skip to content

Instantly share code, notes, and snippets.

@Steboss
Created February 23, 2021 13:31
Show Gist options
  • Save Steboss/38cc1745f0be1dc406d8a3d76fb43665 to your computer and use it in GitHub Desktop.
Save Steboss/38cc1745f0be1dc406d8a3d76fb43665 to your computer and use it in GitHub Desktop.
Plot of log2 RMS with Hurst coefficient
fluctfit = 2**np.polyval(coeff_to_array,np.log2(scales))
plt.loglog(scales, fluct_to_array, 'bo')
plt.loglog(scales, fluctfit, 'r', label=r'$\alpha$ = %0.2f'%coeff_to_array[0])
plt.title('DFA')
plt.xlabel(r'$\log_{10}$(time window)')
plt.ylabel(r'$\log_{10}$<F(t)>')#
plt.legend()
plt.show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment