{"id":4532,"date":"2019-10-06T13:45:23","date_gmt":"2019-10-06T12:45:23","guid":{"rendered":"http:\/\/roboblog.fatal-fury.de\/?p=4532"},"modified":"2019-10-06T13:45:23","modified_gmt":"2019-10-06T12:45:23","slug":"c-guns-acpl-histogram2d-ordnungszahl-vs-atomgewicht","status":"publish","type":"post","link":"http:\/\/roboblog.fatal-fury.de\/?p=4532","title":{"rendered":"C++ Guns: acpl Histogram2D: Ordnungszahl vs. Atomgewicht"},"content":{"rendered":"<p>Steigt das Atomgewicht mit der Ordnungszahl an? Hmmm. Lasst uns das in einem 2D Histogramm \u00fcberpr\u00fcfen!<\/p>\n<p><a href=\"http:\/\/roboblog.fatal-fury.de\/wp-content\/uploads\/2019\/10\/ordnungszahlatomgewichthist2d.png\" rel=\"attachment wp-att-4536\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/roboblog.fatal-fury.de\/wp-content\/uploads\/2019\/10\/ordnungszahlatomgewichthist2d.png\" alt=\"ordnungszahlatomgewichthist2d\" width=\"687\" height=\"779\" class=\"alignnone size-full wp-image-4536\" srcset=\"http:\/\/roboblog.fatal-fury.de\/wp-content\/uploads\/2019\/10\/ordnungszahlatomgewichthist2d.png 687w, http:\/\/roboblog.fatal-fury.de\/wp-content\/uploads\/2019\/10\/ordnungszahlatomgewichthist2d-265x300.png 265w\" sizes=\"auto, (max-width: 687px) 100vw, 687px\" \/><\/a><\/p>\n<pre class=\"brush: cpp; title: ; notranslate\" title=\"\">\r\n        PSE pse;\r\n\r\n        std::vector&lt;double&gt; ordnungszahlen;\r\n        for(uint32_t i=1; i &lt;= pse.nElements(); ++i) {\r\n            ordnungszahlen.push_back(i);\r\n        }\r\n        acpl::HistogramAxis Xaxis(&quot;Ordnungszahl&quot;, acpl::FixBinSize{50}, acpl::makeDataIntervalClosed(ordnungszahlen));\r\n\r\n        std::vector&lt;double&gt; gewicht;\r\n        for(uint32_t ordnungszahl=1; ordnungszahl &lt;= pse.nElements(); ++ordnungszahl) {\r\n            gewicht.push_back(pse.atomgewicht(pse.atomByOrdnungszahl(ordnungszahl)));\r\n        }\r\n        acpl::HistogramAxis Yaxis(&quot;Atomgewicht&quot;, acpl::FixBinSize{20}, acpl::makeDataIntervalClosed(gewicht));\r\n\r\n        acpl::Histogram2D hist(Xaxis, ordnungszahlen, Yaxis, gewicht);\r\n        std::cout &lt;&lt; hist;\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Steigt das Atomgewicht mit der Ordnungszahl an? Hmmm. Lasst uns das in einem 2D Histogramm \u00fcberpr\u00fcfen! PSE pse; std::vector&lt;double&gt; ordnungszahlen; for(uint32_t i=1; i &lt;= pse.nElements(); ++i) { ordnungszahlen.push_back(i); } acpl::HistogramAxis Xaxis(&quot;Ordnungszahl&quot;, acpl::FixBinSize{50}, acpl::makeDataIntervalClosed(ordnungszahlen)); std::vector&lt;double&gt; gewicht; for(uint32_t ordnungszahl=1; ordnungszahl &lt;= pse.nElements(); ++ordnungszahl) { gewicht.push_back(pse.atomgewicht(pse.atomByOrdnungszahl(ordnungszahl))); } acpl::HistogramAxis Yaxis(&quot;Atomgewicht&quot;, acpl::FixBinSize{20}, acpl::makeDataIntervalClosed(gewicht)); acpl::Histogram2D hist(Xaxis, ordnungszahlen, Yaxis, gewicht); std::cout &lt;&lt; [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[17],"class_list":["post-4532","post","type-post","status-publish","format-standard","hentry","category-allgemein","tag-cpp"],"_links":{"self":[{"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/posts\/4532","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4532"}],"version-history":[{"count":6,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/posts\/4532\/revisions"}],"predecessor-version":[{"id":4551,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=\/wp\/v2\/posts\/4532\/revisions\/4551"}],"wp:attachment":[{"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4532"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4532"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/roboblog.fatal-fury.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4532"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}