Solved

Aggregate function of average not resulting the correct value

  • 5 October 2023
  • 2 replies
  • 30 views

Hello Cognite team,

 

Greetings! Below is a screen shot of 4 data points available for a specific timeseries id in a duration of 1 hour

 



For the above mentioned data points when i select the aggregate function (similar value being resulted from aggregate function api) i see an average value which is significantly higher than the original value (calculated manually) The data interval for the below points is for every 15 mins the first 4 data points for this timeseries is what you see in the below screen shot

 

 

icon

Best answer by Dilesha Kodithuwakku 6 October 2023, 16:44

View original

2 replies

Userlevel 1
Badge +1

Hi @Manish Nethi ,

The average aggreation in CDF is defined as the ntegral of time series divided by the size of time range. So the average function computes the time-weighted average value of the time series per time range. Please refer to the documentation for further information.

Best regards,

Dilesha

 

Userlevel 3

Hi @Manish Nethi,

Did the above help you? 

Reply