{"id":132,"date":"2013-09-09T12:19:11","date_gmt":"2013-09-09T10:19:11","guid":{"rendered":"https:\/\/www.benscoat.eu\/?p=132"},"modified":"2020-11-27T12:25:40","modified_gmt":"2020-11-27T11:25:40","slug":"calculate-mean-and-error","status":"publish","type":"post","link":"https:\/\/www.benscoat.eu\/index.php\/2013\/09\/09\/calculate-mean-and-error\/","title":{"rendered":"Calculate mean and error"},"content":{"rendered":"\n<p>I often need to calculate the mean and \u00b1 error of two numbers, like for instance of a radiocarbon date. Here is a workflow (and below the AppleScript it includes) to calculate these two parameters based on two numbers input in Alfred.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code lang=\"applescript\" class=\"language-applescript\">set FirstNumber to first word of q as integer\nset SecondNumber to second word of q as integer\n\nset NumbersAverage to (FirstNumber + SecondNumber) \/ 2 as integer\nset NumbersError to (SecondNumber - FirstNumber) \/ 2 as integer\n\nset q to NumbersAverage &amp; \"\u00b1\" &amp; NumbersError as text<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I often need to calculate the mean and \u00b1 error of two numbers, like for instance of a radiocarbon date. Here is a workflow (and below the AppleScript it includes) to calculate these two parameters based on two numbers input in Alfred.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[5],"tags":[],"_links":{"self":[{"href":"https:\/\/www.benscoat.eu\/index.php\/wp-json\/wp\/v2\/posts\/132"}],"collection":[{"href":"https:\/\/www.benscoat.eu\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.benscoat.eu\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.benscoat.eu\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.benscoat.eu\/index.php\/wp-json\/wp\/v2\/comments?post=132"}],"version-history":[{"count":2,"href":"https:\/\/www.benscoat.eu\/index.php\/wp-json\/wp\/v2\/posts\/132\/revisions"}],"predecessor-version":[{"id":136,"href":"https:\/\/www.benscoat.eu\/index.php\/wp-json\/wp\/v2\/posts\/132\/revisions\/136"}],"wp:attachment":[{"href":"https:\/\/www.benscoat.eu\/index.php\/wp-json\/wp\/v2\/media?parent=132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.benscoat.eu\/index.php\/wp-json\/wp\/v2\/categories?post=132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.benscoat.eu\/index.php\/wp-json\/wp\/v2\/tags?post=132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}