04-20-2017 04:57 PM
Dear Friends,
As beginner user of lab view struggling with this problem which I can explain it by an example
my array:
8 8 8 7 8 9 9 7 24 14
I would like to calculate the average of majority of elements which is 8
any help or hint would be highly appreciated
Solved! Go to Solution.
04-20-2017 05:00 PM
@arvin1947 wrote:
Dear Friends,
As beginner user of lab view struggling with this problem which I can explain it by an example
my array:
8 8 8 7 8 9 9 7 24 14
I would like to calculate the average of majority of elements which is 8
any help or hint would be highly appreciated
I don't understand. The average of the majority of the elements, the way you describe it, will always be that number!
04-20-2017 05:01 PM
Maybe it would help if you gave us the expected answer.
04-20-2017 05:49 PM
Hi Bill,
My expected answer is 8 in this case
thanks
04-20-2017 05:51 PM
My expected answer is 8 but in this case it is not, I would like to be able to delete out range numbers
04-20-2017 07:51 PM
It sounds like you're looking to calculate the mode? If so, LabVIEW has a built-in VI found at Mathematics > Prob & Stat > Mode.vi
04-21-2017 01:14 AM
Use Mode.vi as suggested by cbutcher and Provide the interval as 0 and use multi model if multiple numbers share same amount of repetition.