Ask Your Question
4

What is the method for computing the average of time series data at two measuring locations in Apache IoTDB Version 0.12?

asked 2023-05-04 20:37:52 +0000

plato gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2023-05-04 20:41:02 +0000

lakamha gravatar image

The method for computing the average of time series data at two measuring locations in Apache IoTDB Version 0.12 is as follows:

  1. Connect to IoTDB using a client application or command-line tool.
  2. Select the two measuring locations using the USE <device> command.
  3. Use the SELECT statement to retrieve the data from both time series.
  4. Apply the AVG function to the retrieved data to compute the average.
  5. Display the result using the FETCH statement or export it to a file using the EXPORT statement.

For example, assume that we have two time series, voltage and current, located under the device sensor1. We can compute the average of these series as follows:

USE sensor1;

SELECT AVG(voltage), AVG(current) FROM voltage, current;

This will retrieve the average value of voltage and current at all timestamps and display the result.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-04 20:37:52 +0000

Seen: 9 times

Last updated: May 04 '23