View Issue Details

IDProjectCategoryView StatusLast Update
0002986NodeSets, XSDs and Generated CodeApi Changepublic2022-12-08 15:55
ReporterJim Luth Assigned ToArchie Miller  
PrioritynormalSeverityminorReproducibilityalways
Status assignedResolutionopen 
Product Version1.02 
Summary0002986: StandardDeviation: Cannot reproduce the same results shown in appendix
Description

We have created the StandardDeviation aggregate in the CTT and our unit-tests expected to receive the exact same output as the appendix (we have replicated the datasets).

We are applying the formula as mentioned in the “OPC UA Part 13 - Aggregates 1.02 Specification.pdf” but we are not getting the output as expected.

  1. Here is the Formula (see "formula.png" attachment)

  2. For example take the "Historian 2" (in the spec) and Processing interval as 20,000 ms

  3. Here is the part of Historian 2 data form the document “OPC UA Part 13 - Aggregates 1.02 Specification.pdf” (see "table.png" attachment)

    1. Lets consider 2nd interval 12:00:25 to 12:00:39
  4. Average for the given interval is (20+25+30)/3 = 25

  5. n is 3

  6. Lets apply these value in the formula sqrt( ((20-25)2 + (25-25)2 + (30-25)2 ) / (3-1) )) = sqrt( ( 25 + 0 + 25 ) / 2) = sqrt (50/2) = 5

  7. The expected value in the “OPC UA Part 13 - Aggregates 1.02 Specification.pdf” is 6.25

The spec says 6.25, but the CTT is saying 5. Is the CTT correct?

TagsNo tags attached.
Attached Files
formula.png (9,120 bytes)   
formula.png (9,120 bytes)   
table.png (51,099 bytes)   
table.png (51,099 bytes)   
Commit Version
Fix Due Date

Relationships

related to 0002962 closedRod Stein 10000-013: Aggregates StandardDeviation: Cannot reproduce the same results shown in appendix 

Activities

Jim Luth

2015-03-03 17:20

administrator   ~0005867

Randy says the code is flawed in handling the ending bound.

Jim Luth

2015-03-03 17:22

administrator   ~0005868

The aggregate tester needs to be fixed too.

Randy Armstrong

2016-01-05 07:08

administrator   ~0006495

Need schedule time to do.

Issue History

Date Modified Username Field Change
2015-03-03 17:20 Jim Luth New Issue
2015-03-03 17:20 Jim Luth Status new => assigned
2015-03-03 17:20 Jim Luth Assigned To => Rod Stein
2015-03-03 17:20 Jim Luth Issue generated from: 0002962
2015-03-03 17:20 Jim Luth Relationship added related to 0002962
2015-03-03 17:21 Jim Luth Project 10000-013: Aggregates => NodeSets, XSDs and Generated Code
2015-03-03 17:21 Jim Luth Category Spec => Api Change
2015-03-03 17:22 Jim Luth Assigned To Rod Stein => Randy Armstrong
2015-03-03 17:22 Jim Luth Note Added: 0005868
2016-01-05 07:08 Randy Armstrong Note Added: 0006495
2016-01-05 07:08 Randy Armstrong Status assigned => acknowledged
2021-03-02 19:34 Randy Armstrong Assigned To Randy Armstrong => Archie Miller
2022-12-08 15:55 Jim Luth Status acknowledged => assigned