View Issue Details

IDProjectCategoryView StatusLast Update
000296210000-013: AggregatesSpecpublic2015-05-26 16:44
ReporterNathan PocockAssigned ToRod Stein  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version1.02 
Target Version1.03Fixed in Version1.03 
Summary0002962: 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)   
Standard Deviation.xlsx (17,041 bytes)
Commit Version

Relationships

related to 0002986 assignedArchie Miller NodeSets, XSDs and Generated Code StandardDeviation: Cannot reproduce the same results shown in appendix 

Activities

Jim Luth

2015-03-03 17:19

administrator   ~0005866

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

Rod Stein

2015-04-14 15:29

developer   ~0006009

Looked over sample spreadsheet of fixes and agreed to correct values and codes. Added Standard Deviation.xlsx file as new examples.

Rod Stein

2015-04-16 17:43

developer   ~0006017

Added Errata for this issue 1.02.4

Rod Stein

2015-04-16 19:07

developer   ~0006018

Updated in version Part 13 1.03 Draft 03

Updated Errata in 1.02.4

Jim Luth

2015-05-26 16:44

administrator   ~0006094

Agreed to text in errata.

Issue History

Date Modified Username Field Change
2015-02-11 16:48 Nathan Pocock New Issue
2015-02-11 16:48 Nathan Pocock File Added: formula.png
2015-02-11 16:49 Nathan Pocock File Added: table.png
2015-03-03 17:18 Jim Luth Assigned To => Rod Stein
2015-03-03 17:18 Jim Luth Status new => assigned
2015-03-03 17:19 Jim Luth Note Added: 0005866
2015-03-03 17:20 Jim Luth Issue cloned: 0002986
2015-03-03 17:20 Jim Luth Relationship added related to 0002986
2015-03-18 22:31 Rod Stein Fixed in Version => 1.03
2015-03-18 22:31 Rod Stein Target Version => 1.03
2015-04-14 15:29 Rod Stein File Added: Standard Deviation.xlsx
2015-04-14 15:29 Rod Stein Note Added: 0006009
2015-04-16 17:43 Rod Stein Note Added: 0006017
2015-04-16 19:05 Rod Stein File Deleted: Standard Deviation.xlsx
2015-04-16 19:05 Rod Stein File Added: Standard Deviation.xlsx
2015-04-16 19:07 Rod Stein Note Added: 0006018
2015-04-16 19:07 Rod Stein Status assigned => resolved
2015-04-16 19:07 Rod Stein Resolution open => fixed
2015-05-26 16:44 Jim Luth Note Added: 0006094
2015-05-26 16:44 Jim Luth Status resolved => closed