{"id":431,"date":"2023-07-29T23:24:50","date_gmt":"2023-07-29T23:24:50","guid":{"rendered":"https:\/\/statorials.org\/cn\/%e8%8c%8e%e5%8f%b6%e5%9b%be%e7%94%9f%e6%88%90%e5%99%a8\/"},"modified":"2023-07-29T23:24:50","modified_gmt":"2023-07-29T23:24:50","slug":"%e8%8c%8e%e5%8f%b6%e5%9b%be%e7%94%9f%e6%88%90%e5%99%a8","status":"publish","type":"post","link":"https:\/\/statorials.org\/cn\/%e8%8c%8e%e5%8f%b6%e5%9b%be%e7%94%9f%e6%88%90%e5%99%a8\/","title":{"rendered":"\u830e\u53f6\u56fe\u751f\u6210\u5668"},"content":{"rendered":"<p><script src=\"https:\/\/cdnjs.cloudflare.com\/ajax\/libs\/d3\/3.5.5\/d3.min.js\"><\/script><\/p>\n<style>\n@import url('https:\/\/fonts.googleapis.com\/css?family=Droid+Serif|Raleway');<\/p>\n<p>h1 {\ncolor: black;\ntext-align: center;\nmargin-bottom: 0px;\nmargin-top: 15px;\nfont-family: 'Raleway', sans-serif;\n}<\/p>\n<p>p {\ncolor: black;\ntext-align: center;\nmargin-bottom: 15px;\nmargin-top: 15px;\nfont-family: 'Raleway', sans-serif;\n}<\/p>\n<p>#words {\npadding-left: 30px;\ncolor: black;\nfont-family: Raleway;\nmax-width: 550px;\nmargin: 25px auto;\nline-height: 1.75;\n}<\/p>\n<p>#words_summary {\npadding-left: 70px;\ncolor: black;\nfont-family: Raleway;\nmax-width: 550px;\nmargin: 25px auto;\nline-height: 1.75;\n}<\/p>\n<p>#words_text {\ncolor: black;\nfont-family: Raleway;\nmax-width: 550px;\nmargin: 25px auto;\nline-height: 1.75;\n}<\/p>\n<p>#words_text_area {\ndisplay:inline-block;\ncolor: black;\nfont-family: Raleway;\nmax-width: 550px;\nmargin: 25px auto;\nline-height: 1.75;\npadding-left: 100px;\n}<\/p>\n<p>#calcTitle {\ntext-align: center;\nfont-size: 20px;\nmargin-bottom: 0px;\nfont-family: 'Raleway', serif;\n}<\/p>\n<p>#hr_top {\nwidth: 30%;\nmargin-bottom: 0px;\nborder: none;\nheight: 2px;\ncolor: black;\nbackground-color: black;\n}<\/p>\n<p>#hr_bottom {\nwidth: 30%;\nmargin-top: 15px;\nborder: none;\nheight: 2px;\ncolor: black;\nbackground-color: black;\n}<\/p>\n<p>label, input {\n    display: inline-block;\n    vertical-align: baseline;\n    width: 350px;\n}<\/p>\n<p>    #button {\n      border: 1px solid;\n      border-radius: 10px;\n      margin-top: 20px;<\/p>\n<p>      cursor: pointer;\n      outline: none;\n      background-color: white;\n      color: black;\n      font-family: 'Work Sans', sans-serif;\n      border: 1px solid grey;\n      \/* Green *\/\n    }<\/p>\n<p>    #button:hover {\n      background-color: #f6f6f6;\n      border: 1px solid black;\n    }<\/p>\n<p>\t#words_table {\ncolor: black;\nfont-family: Raleway;\nmax-width: 350px;\nmargin: 25px auto;\nline-height: 1.75;\n}<\/p>\n<p>#summary_table {\ncolor: black;\nfont-family: Raleway;\nmax-width: 550px;\nmargin: 25px auto;\nline-height: 1.75;\npadding-left: 20px;\n}<\/p>\n<p>table {\n      border-collapse: collapse;\n    }\n    th:first-child, td:first-child {\n      border-right: 1px solid silver;\n      text-align: right;\n    }<\/p>\n<p>    td {\n    text-align: center;\n    }<\/p>\n<p>    thead td {\n    border-top: none;\n    }<\/p>\n<p>    th, td {\n      padding: 2px;\n    }<\/p>\n<p>#text_area_input {\n\tpadding-left: 35%;\n\tfloat: left;\n}<\/p>\n<\/style>\n<div id=\"words\">\n<p style=\"text-align: left\">\u830e\u53f6\u56fe\u901a\u8fc7\u5c06\u6570\u636e\u96c6\u4e2d\u7684\u6bcf\u4e2a\u503c\u5212\u5206\u4e3a\u201c\u830e\u201d\u548c\u201c\u53f6\u201d\u6765\u663e\u793a\u6570\u636e\u3002<\/p>\n<p style=\"text-align: left\">\u8981\u4e86\u89e3\u5982\u4f55\u624b\u52a8\u521b\u5efa\u830e\u548c\u53f6\u8f6e\u5ed3\uff0c\u8bf7\u9605\u8bfb<a href=\"https:\/\/statorials.org\/cn\/\u830e\u53f6\u56fe-1\/\" target=\"_blank\" rel=\"noopener\">\u672c\u6559\u7a0b<\/a>\u3002<\/p>\n<p style=\"text-align: left\">\u8981\u4e3a\u7ed9\u5b9a\u6570\u636e\u96c6\u521b\u5efa\u830e\u53f6\u56fe\uff0c\u8bf7\u5728\u4e0b\u9762\u7684\u6846\u4e2d\u8f93\u5165\u7528\u9017\u53f7\u5206\u9694\u7684\u6570\u636e\uff1a <\/p>\n<\/div>\n<div id=\"words_table\"><textarea id=\"input_data\" name=\"x\" rows=\"5\" cols=\"40\"><\/textarea><\/div>\n<div id=\"words_table\"><input type=\"button\" id=\"button\" onclick=\"calc()\" value=\"Generate Stem and Leaf Plot\"><\/div>\n<div id=\"words_table\">\n<div id=\"target\"><\/div>\n<\/div>\n<div class=\"content_hint\"><\/div>\n<p><script>\n\/\/code to generate stem and leaf plot comes from https:\/\/www.rosettacode.org\/wiki\/Stem-and-leaf_plot<\/p>\n<p>function calc() {<\/p>\n<p>\/\/remove current stem and leaf plot\nvar element = document.getElementsByTagName('table')[0];\n    if(element) {element.parentNode.removeChild(element)}<\/p>\n<p>var data = document.getElementById('input_data').value.match(\/\\d+\/g).map(Number);<\/p>\n<p>function has_property(obj, propname) {\n        return typeof(obj[propname]) === \"undefined\" ? false : true;\n    }<\/p>\n<p>    function compare_numbers(a, b) {return a-b;}<\/p>\n<p>    function stemplot(data, target) {\n        var stem_data = {};\n        var all_stems = [];\n        for (var i = 0; i < data.length; i++) {\n            var stem = Math.floor(data[i] \/ 10);\n            var leaf = Math.round(data[i] % 10);\n            if (has_property(stem_data, stem)) {\n                stem_data[stem].push(leaf);\n            } else {\n                stem_data[stem] = [leaf];\n                all_stems.push(stem);\n            }\n        }\n        all_stems.sort(compare_numbers);\n \n        var min_stem = all_stems[0];\n        var max_stem = all_stems[all_stems.length - 1];\n \n        var table = document.createElement('table');\n        for (var stem = min_stem; stem <= max_stem; stem++) {\n            var row = document.createElement('tr');\n            var label = document.createElement('th');\n            row.appendChild(label);\n            label.appendChild(document.createTextNode(stem));\n            if (has_property(stem_data, stem)) {\n                stem_data[stem].sort(compare_numbers);\n                for (var i = 0; i < stem_data[stem].length; i++) {\n                    var cell = document.createElement('td');\n                    cell.appendChild(document.createTextNode(stem_data[stem][i]));\n                    row.appendChild(cell);\n                }\n            }\n            table.appendChild(row);\n        }\n        target.appendChild(table);\n    }\n    \n    stemplot(data, document.getElementById('target'));\n    \n\/\/insert header in table\nvar the_table = document.getElementsByTagName('table')[0];\nvar header_insert = the_table.createTHead();\nvar row_insert = header_insert.insertRow(0);\nvar cell_insert = row_insert.insertCell(0);\nvar cell_insert2 = row_insert.insertCell(1);\ncell_insert.innerHTML = \"<b>Stem<\/b>\";\ncell_insert2.innerHTML = \"<b>Leaf<\/b>\";<\/p>\n<p>} \/\/end calc function\n<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u830e\u53f6\u56fe\u901a\u8fc7\u5c06\u6570\u636e\u96c6\u4e2d\u7684\u6bcf\u4e2a\u503c\u5212\u5206\u4e3a\u201c\u830e\u201d\u548c\u201c\u53f6\u201d\u6765\u663e\u793a\u6570\u636e\u3002 \u8981\u4e86\u89e3\u5982\u4f55\u624b\u52a8\u521b\u5efa\u830e\u548c\u53f6\u8f6e\u5ed3\uff0c\u8bf7\u9605\u8bfb\u672c\u6559\u7a0b\u3002 \u8981 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-431","post","type-post","status-publish","format-standard","hentry","category-11"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v21.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u830e\u53f6\u56fe\u751f\u6210\u5668 - Statorials<\/title>\n<meta name=\"description\" content=\"\u8be5\u5de5\u5177\u4e3a\u7528\u6237\u8f93\u5165\u7684\u7ed9\u5b9a\u6570\u636e\u96c6\u521b\u5efa\u830e\u53f6\u56fe\u3002\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/statorials.org\/cn\/\u830e\u53f6\u56fe\u751f\u6210\u5668\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u830e\u53f6\u56fe\u751f\u6210\u5668 - Statorials\" \/>\n<meta property=\"og:description\" content=\"\u8be5\u5de5\u5177\u4e3a\u7528\u6237\u8f93\u5165\u7684\u7ed9\u5b9a\u6570\u636e\u96c6\u521b\u5efa\u830e\u53f6\u56fe\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/statorials.org\/cn\/\u830e\u53f6\u56fe\u751f\u6210\u5668\/\" \/>\n<meta property=\"og:site_name\" content=\"Statorials\" \/>\n<meta property=\"article:published_time\" content=\"2023-07-29T23:24:50+00:00\" \/>\n<meta name=\"author\" content=\"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/statorials.org\/cn\/%e8%8c%8e%e5%8f%b6%e5%9b%be%e7%94%9f%e6%88%90%e5%99%a8\/\",\"url\":\"https:\/\/statorials.org\/cn\/%e8%8c%8e%e5%8f%b6%e5%9b%be%e7%94%9f%e6%88%90%e5%99%a8\/\",\"name\":\"\u830e\u53f6\u56fe\u751f\u6210\u5668 - Statorials\",\"isPartOf\":{\"@id\":\"https:\/\/statorials.org\/cn\/#website\"},\"datePublished\":\"2023-07-29T23:24:50+00:00\",\"dateModified\":\"2023-07-29T23:24:50+00:00\",\"author\":{\"@id\":\"https:\/\/statorials.org\/cn\/#\/schema\/person\/124e4e5b7c9f8dc0f1f95cc8c1db3261\"},\"description\":\"\u8be5\u5de5\u5177\u4e3a\u7528\u6237\u8f93\u5165\u7684\u7ed9\u5b9a\u6570\u636e\u96c6\u521b\u5efa\u830e\u53f6\u56fe\u3002\",\"breadcrumb\":{\"@id\":\"https:\/\/statorials.org\/cn\/%e8%8c%8e%e5%8f%b6%e5%9b%be%e7%94%9f%e6%88%90%e5%99%a8\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/statorials.org\/cn\/%e8%8c%8e%e5%8f%b6%e5%9b%be%e7%94%9f%e6%88%90%e5%99%a8\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/statorials.org\/cn\/%e8%8c%8e%e5%8f%b6%e5%9b%be%e7%94%9f%e6%88%90%e5%99%a8\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u5bb6\",\"item\":\"https:\/\/statorials.org\/cn\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u830e\u53f6\u56fe\u751f\u6210\u5668\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/statorials.org\/cn\/#website\",\"url\":\"https:\/\/statorials.org\/cn\/\",\"name\":\"Statorials\",\"description\":\"\u60a8\u7684\u7edf\u8ba1\u7d20\u517b\u6307\u5357\uff01\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/statorials.org\/cn\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/statorials.org\/cn\/#\/schema\/person\/124e4e5b7c9f8dc0f1f95cc8c1db3261\",\"name\":\"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/statorials.org\/cn\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/statorials.org\/cn\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"contentUrl\":\"https:\/\/statorials.org\/cn\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg\",\"caption\":\"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a\"},\"description\":\"\u5927\u5bb6\u597d\uff0c\u6211\u662f\u672c\u6770\u660e\uff0c\u4e00\u4f4d\u9000\u4f11\u7684\u7edf\u8ba1\u5b66\u6559\u6388\uff0c\u540e\u6765\u6210\u4e3a Statorials \u7684\u70ed\u5fc3\u6559\u5e08\u3002 \u51ed\u501f\u5728\u7edf\u8ba1\u9886\u57df\u7684\u4e30\u5bcc\u7ecf\u9a8c\u548c\u4e13\u4e1a\u77e5\u8bc6\uff0c\u6211\u6e34\u671b\u5206\u4eab\u6211\u7684\u77e5\u8bc6\uff0c\u901a\u8fc7 Statorials \u589e\u5f3a\u5b66\u751f\u7684\u80fd\u529b\u3002\u4e86\u89e3\u66f4\u591a\",\"sameAs\":[\"https:\/\/statorials.org\/cn\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u830e\u53f6\u56fe\u751f\u6210\u5668 - Statorials","description":"\u8be5\u5de5\u5177\u4e3a\u7528\u6237\u8f93\u5165\u7684\u7ed9\u5b9a\u6570\u636e\u96c6\u521b\u5efa\u830e\u53f6\u56fe\u3002","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/statorials.org\/cn\/\u830e\u53f6\u56fe\u751f\u6210\u5668\/","og_locale":"zh_CN","og_type":"article","og_title":"\u830e\u53f6\u56fe\u751f\u6210\u5668 - Statorials","og_description":"\u8be5\u5de5\u5177\u4e3a\u7528\u6237\u8f93\u5165\u7684\u7ed9\u5b9a\u6570\u636e\u96c6\u521b\u5efa\u830e\u53f6\u56fe\u3002","og_url":"https:\/\/statorials.org\/cn\/\u830e\u53f6\u56fe\u751f\u6210\u5668\/","og_site_name":"Statorials","article_published_time":"2023-07-29T23:24:50+00:00","author":"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/statorials.org\/cn\/%e8%8c%8e%e5%8f%b6%e5%9b%be%e7%94%9f%e6%88%90%e5%99%a8\/","url":"https:\/\/statorials.org\/cn\/%e8%8c%8e%e5%8f%b6%e5%9b%be%e7%94%9f%e6%88%90%e5%99%a8\/","name":"\u830e\u53f6\u56fe\u751f\u6210\u5668 - Statorials","isPartOf":{"@id":"https:\/\/statorials.org\/cn\/#website"},"datePublished":"2023-07-29T23:24:50+00:00","dateModified":"2023-07-29T23:24:50+00:00","author":{"@id":"https:\/\/statorials.org\/cn\/#\/schema\/person\/124e4e5b7c9f8dc0f1f95cc8c1db3261"},"description":"\u8be5\u5de5\u5177\u4e3a\u7528\u6237\u8f93\u5165\u7684\u7ed9\u5b9a\u6570\u636e\u96c6\u521b\u5efa\u830e\u53f6\u56fe\u3002","breadcrumb":{"@id":"https:\/\/statorials.org\/cn\/%e8%8c%8e%e5%8f%b6%e5%9b%be%e7%94%9f%e6%88%90%e5%99%a8\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/statorials.org\/cn\/%e8%8c%8e%e5%8f%b6%e5%9b%be%e7%94%9f%e6%88%90%e5%99%a8\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/statorials.org\/cn\/%e8%8c%8e%e5%8f%b6%e5%9b%be%e7%94%9f%e6%88%90%e5%99%a8\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u5bb6","item":"https:\/\/statorials.org\/cn\/"},{"@type":"ListItem","position":2,"name":"\u830e\u53f6\u56fe\u751f\u6210\u5668"}]},{"@type":"WebSite","@id":"https:\/\/statorials.org\/cn\/#website","url":"https:\/\/statorials.org\/cn\/","name":"Statorials","description":"\u60a8\u7684\u7edf\u8ba1\u7d20\u517b\u6307\u5357\uff01","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/statorials.org\/cn\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/statorials.org\/cn\/#\/schema\/person\/124e4e5b7c9f8dc0f1f95cc8c1db3261","name":"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/statorials.org\/cn\/#\/schema\/person\/image\/","url":"https:\/\/statorials.org\/cn\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","contentUrl":"https:\/\/statorials.org\/cn\/wp-content\/uploads\/2023\/10\/Dr.-Benjamin-Anderson-96x96.jpg","caption":"\u672c\u6770\u660e\u00b7\u5b89\u5fb7\u68ee\u535a"},"description":"\u5927\u5bb6\u597d\uff0c\u6211\u662f\u672c\u6770\u660e\uff0c\u4e00\u4f4d\u9000\u4f11\u7684\u7edf\u8ba1\u5b66\u6559\u6388\uff0c\u540e\u6765\u6210\u4e3a Statorials \u7684\u70ed\u5fc3\u6559\u5e08\u3002 \u51ed\u501f\u5728\u7edf\u8ba1\u9886\u57df\u7684\u4e30\u5bcc\u7ecf\u9a8c\u548c\u4e13\u4e1a\u77e5\u8bc6\uff0c\u6211\u6e34\u671b\u5206\u4eab\u6211\u7684\u77e5\u8bc6\uff0c\u901a\u8fc7 Statorials \u589e\u5f3a\u5b66\u751f\u7684\u80fd\u529b\u3002\u4e86\u89e3\u66f4\u591a","sameAs":["https:\/\/statorials.org\/cn"]}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"_links":{"self":[{"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/posts\/431","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/comments?post=431"}],"version-history":[{"count":0,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/posts\/431\/revisions"}],"wp:attachment":[{"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/media?parent=431"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/categories?post=431"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/statorials.org\/cn\/wp-json\/wp\/v2\/tags?post=431"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}