{"id":9975,"date":"2016-02-23T14:17:51","date_gmt":"2016-02-23T06:17:51","guid":{"rendered":"http:\/\/localhost\/help\/p2-server\/calculations\/confidence\/"},"modified":"2024-01-15T10:06:21","modified_gmt":"2024-01-15T02:06:21","slug":"confidence","status":"publish","type":"page","link":"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/calculations\/confidence\/","title":{"rendered":"Confidence()"},"content":{"rendered":"\n<h2><span id=\"Format\">Format<\/span><\/h2>\n<p class=\"intro-text\"><strong>Confidence(Arg1)<\/strong><\/p>\n<h2><span id=\"Returns\">Returns<\/span><\/h2>\n<p class=\"intro-text\">Returns the confidence of the supplied argument, as an integer value from 0 to 100 (a percentage).<\/p>\n<h2><span id=\"Parameters\">Inputs<\/span><\/h2>\n<p class=\"intro-text\"><strong>Arg1<\/strong>:\u00a0The argument being evaluated.<br \/>\nBehaviour: Required<br \/>\nDimension: Collection, SingleValue, MultiCollection<br \/>\nValid\u00a0data types: Null, Boolean, DateTime, Decimal, Integer, String, Duration, Error<\/p>\n<p class=\"left-bar\"><a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/calculations\/calculation-syntax\/#Data_Type\">How to format data types<\/a><\/p>\n<h2>Formula<\/h2>\n<p class=\"intro-text\">The confidence of tag values is taken from the underlying historian, with the Adaptor mapping the historian's \"data quality\" value to a confidence. For example, some historians report a confidence as a percentage directly, whereas others have a status (such as good or bad) which is mapped to a value of 100 or 0 respectively.<\/p>\n<p class=\"intro-text\">For <strong>sample-based<\/strong> historical functions (<a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/calculations\/sum_sampled\/\">Sum_Sampled<\/a>(), <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/calculations\/average_sampled\/\">Average_Sampled<\/a>(), <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/calculations\/max_sampled\/\">Max_Sampled<\/a>(), <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/calculations\/min_sampled\/\">Min_Sampled<\/a>(), <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/calculations\/count_sampled\/\">Count_Sampled<\/a>()), the confidence of the result is the arithmetic mean of the confidence of the input samples in the Expr\u00a0argument. That is:<\/p>\n<pre>((sample 1 confidence) + (sample 2 confidence) + \u2026 + (sample N confidence)) \/ (N, the number of samples \r\nin interval)<\/pre>\n<p class=\"intro-text\">For <strong>continuous <\/strong>historical functions (<a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/calculations\/integral_sampled\/\">Integral_Sampled<\/a>(), <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/calculations\/continuousmax_sampled\/\">ContinuousMax_Sampled<\/a>(), <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/calculations\/continuousmin_sampled\/\">ContinuousMin_Sampled<\/a>(), and <a href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/calculations\/timeweightedaverage_sampled\/\">TimeWeightedAverage_Sampled<\/a>()), the confidence of the result is the time-weighted average of the confidence of the input data in the Expr\u00a0argument. That is:<\/p>\n<pre>((sample 1 confidence) * (time sample 1 in effect in interval) + (sample 2 confidence) * (time sample 2 in \r\neffect in interval) + \u2026 + (sample N confidence) * (time sample N in effect in interval)) \/ (total time \r\nof interval)<\/pre>\n<p class=\"intro-text\">For <strong>all other functions<\/strong> (such as Sin(Expr), Expr1+ Expr2, and so on) the confidence of the result is the minimum of the confidences of all of the arguments.<\/p>\n<h2><span id=\"Release_History\">Release History<\/span><\/h2>\n<ul class=\"intro-text\">\n<li>Confidence() 4.6.5\n<ul class=\"intro-text\">\n<li>Changed Arg1 parameter to support MultiCollection values.<\/li>\n<\/ul>\n<\/li>\n<li>Confidence() 4.0\n<ul class=\"intro-text\">\n<li>Initial version<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Use Confidence() to get the confidence of the supplied parameter, as an integer value from 0 to 100 (a percentage).<\/p>\n<p class=\"continue-reading-button\"> <a class=\"continue-reading-link\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/calculations\/confidence\/\">Read more<i class=\"crycon-right-dir\"><\/i><\/a><\/p>\n","protected":false},"author":1,"featured_media":9978,"parent":3650,"menu_order":57,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":"","_members_access_role":[],"_members_access_error":""},"categories":[9],"tags":[100,388],"class_list":["post-9975","page","type-page","status-publish","has-post-thumbnail","hentry","category-tech-ref","tag-calculations","tag-confidence","Version-4-0","Version-4-6-5","Product-srv"],"_links":{"self":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/9975","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/comments?post=9975"}],"version-history":[{"count":2,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/9975\/revisions"}],"predecessor-version":[{"id":64689,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/9975\/revisions\/64689"}],"up":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/3650"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media\/9978"}],"wp:attachment":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media?parent=9975"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/categories?post=9975"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/tags?post=9975"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}