{"id":159,"date":"2023-04-01T14:39:08","date_gmt":"2023-04-01T12:39:08","guid":{"rendered":"https:\/\/www.medialearn.de\/?page_id=159"},"modified":"2023-04-01T14:39:08","modified_gmt":"2023-04-01T12:39:08","slug":"akf","status":"publish","type":"page","link":"https:\/\/www.medialearn.de\/index.php\/akf\/","title":{"rendered":"AKF"},"content":{"rendered":"<p>import numpy as np<br \/>\nimport matplotlib.pyplot as plt<\/p>\n<p># generate some data<br \/>\nx = np.arange(0.,50.,1)<br \/>\n#y = np.sin(x)<br \/>\ny = np.random.uniform(size=30)<br \/>\nyunbiased = y-np.mean(y)<br \/>\nprint (yunbiased)<br \/>\nynorm = np.sum(yunbiased**2)<br \/>\nacor = np.correlate(yunbiased, yunbiased, &#8222;same&#8220;)\/ynorm<br \/>\n# use only second half<br \/>\nacor = acor[len(acor)\/\/2:]<\/p>\n<p>print (acor)<br \/>\nplt.plot(acor)<\/p>\n<p>plt.show()<\/p>\n","protected":false},"excerpt":{"rendered":"<p>import numpy as np import matplotlib.pyplot as plt # generate some data x = np.arange(0.,50.,1) #y = np.sin(x) y = np.random.uniform(size=30) yunbiased = y-np.mean(y) print (yunbiased) ynorm = np.sum(yunbiased**2) acor = np.correlate(yunbiased, yunbiased, &#8222;same&#8220;)\/ynorm # use only second half acor = acor[len(acor)\/\/2:] print (acor) plt.plot(acor) plt.show()<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-159","page","type-page","status-publish","hentry","entry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.medialearn.de\/index.php\/wp-json\/wp\/v2\/pages\/159","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.medialearn.de\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.medialearn.de\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.medialearn.de\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.medialearn.de\/index.php\/wp-json\/wp\/v2\/comments?post=159"}],"version-history":[{"count":1,"href":"https:\/\/www.medialearn.de\/index.php\/wp-json\/wp\/v2\/pages\/159\/revisions"}],"predecessor-version":[{"id":160,"href":"https:\/\/www.medialearn.de\/index.php\/wp-json\/wp\/v2\/pages\/159\/revisions\/160"}],"wp:attachment":[{"href":"https:\/\/www.medialearn.de\/index.php\/wp-json\/wp\/v2\/media?parent=159"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}