Jump to content

Average of data into array


leen

Recommended Posts

Hi,

I read in an input. Every second the value of the input ( 0 or 1) stored in an array.

After 1 minute I have 60 values into the array list.

Then I want to calculate the average value of all values to know how many times the input is high into 1 minute.

But there is no function to get direct the result, only i.e. to get the minimum or maximum value.

To calculate on a way by 1 to 1 it's very long-winded.

Is there a function what I can use or a simply way to fixe this.

Best regards

Leen

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

This site uses cookies. By clicking I accept, you agree to their use.