{"id":9976,"date":"2016-02-23T14:18:25","date_gmt":"2016-02-23T06:18:25","guid":{"rendered":"http:\/\/localhost\/help\/p2-server\/calculations\/confidencecutoff\/"},"modified":"2020-11-11T17:30:53","modified_gmt":"2020-11-11T09:30:53","slug":"confidencecutoff","status":"publish","type":"page","link":"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/calculations\/confidencecutoff\/","title":{"rendered":"ConfidenceCutoff()"},"content":{"rendered":"\n<h2><span id=\"Format\">Format<\/span><\/h2>\n<p class=\"intro-text\"><strong>ConfidenceCutoff(Expr ,Cutoff [,Action])<\/strong><\/p>\n<h2><span id=\"Returns\">Returns<\/span><\/h2>\n<p class=\"intro-text\">Overrides the default<em> CalculationConfidenceCutoffThreshold<\/em>\u00a0and <em>CalculationConfidenceCutoffBehavior<\/em> configuration parameters\u00a0when fetching tags referenced within the <em>Expr\u00a0<\/em>argument.<\/p>\n<h2>Inputs<\/h2>\n<p class=\"intro-text\"><strong>Expr<\/strong>: The expression for which the confidence should be calculated.<br \/>\n Behaviour: Required<br \/>\n Dimension: Collection, SingleValue, Matrix, Error<br \/>\n Valid\u00a0data types: Boolean, DateTime, Decimal, Integer, String, Duration, Error, Null<\/p>\n<p class=\"intro-text\"><strong>Cutoff<\/strong>: Overrides the configured\u00a0CalculationConfidenceCutoffThreshold.\u00a0A value is regarded as bad if it is <em>less than<\/em> this value. Must be an integer between 0 and 100.\u00a0<br \/>\n Behaviour: Required\u00a0<br \/>\n Dimension: Collection, SingleValue<br \/>\n Valid\u00a0data types: Integer<\/p>\n<p class=\"intro-text\"><strong>Action<\/strong>: Overrides the configured\u00a0CalculationConfidenceCutoffBehavior. This determines how data values with a confidence <em>less than<\/em> the cutoff\u00a0are treated when performing calculations.<br \/>\n Behaviour:\u00a0Optional<br \/>\n Dimension: SingleValue<br \/>\n Valid\u00a0data types: String<\/p>\n<p class=\"left-bar-blue\">NOTE: Valid values for <em>Action<\/em> are:<br \/>\n <strong>Disabled<\/strong>: Do not override.<br \/>\n <strong>ReplaceWithLastKnownValue<\/strong>:\u00a0Replace every datum with a confidence below the threshold with the last known value which has a high enough confidence. If no such last known value is found, search for the first known value in the future. If no such replacement value was found, both backward and forward in time, then replace the datum with an error <em>(LowConfidenceException: \u201cThe source value has been replaced because its confidence ({0}) is lower than the confidence cut-off threshold ({1}) and no other replacement value was found with high enough confidence.\u201d) <\/em>Note: With this option, no extra fetches will be done to find good values. The algorithm operates strictly on values which are already fetched and available in memory.<br \/>\n <strong>ReplaceWithDatumError<\/strong>: Replace every datum with a confidence below the threshold with an error <em>(LowConfidenceException: \"The source value has been replaced because its confidence ({0}) is lower than the confidence cut-off threshold ({1}).\u201d)<\/em><\/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>Examples<\/h2>\n<p class=\"intro-text\">Expression: <span class=\"code-fragment\">ConfidenceCutoff(Expr, 20, \"Disabled\")<\/span><br \/>\n Result: Ignores any data points with a confidence less than 20.<\/p>\n<p class=\"intro-text\">Expression: <span class=\"code-fragment\">ConfidenceCutoff(Expr, 20, \"ReplaceWithDatumError\")<\/span><br \/>\n Result: Returns an error if any data points have a confidence less than 20.<\/p>\n<p class=\"intro-text\">\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Use ConfidenceCutoff() to override the default CalculationConfidenceCutoffThreshold and CalculationConfidenceCutoffBehavior configuration parameters when fetching tags referenced within the Expr argument.<\/p>\n<p class=\"continue-reading-button\"> <a class=\"continue-reading-link\" href=\"https:\/\/oihelp.corporate.ifs.com\/help\/p2-server\/calculations\/confidencecutoff\/\">Read more<i class=\"crycon-right-dir\"><\/i><\/a><\/p>\n","protected":false},"author":1,"featured_media":9986,"parent":3650,"menu_order":58,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":"","_members_access_role":[],"_members_access_error":""},"categories":[9],"tags":[100,388],"class_list":["post-9976","page","type-page","status-publish","has-post-thumbnail","hentry","category-tech-ref","tag-calculations","tag-confidence","Product-srv"],"_links":{"self":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/9976","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=9976"}],"version-history":[{"count":1,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/9976\/revisions"}],"predecessor-version":[{"id":46195,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/pages\/9976\/revisions\/46195"}],"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\/9986"}],"wp:attachment":[{"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/media?parent=9976"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/categories?post=9976"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/oihelp.corporate.ifs.com\/help\/wp-json\/wp\/v2\/tags?post=9976"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}