LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

standard deviation error

Solved!
Go to solution

I have a data set where all values are exactly the same however labivew is not returning a standard deviation of 0 when I perform this calculation within a loop. Please see the attatched .vi . (Perhaps I am overlooking something obvious).

0 Kudos
Message 1 of 3
(2,325 Views)
Solution
Accepted by topic author eword

Computers cannot exactly represent floating point numbers. The standard deviation you are getting is such a small number, it is effectively zero. You could easily test to see if it less than some other very small number and set it to zero if you want.

Message 2 of 3
(2,315 Views)

Ok I thought it may be something like that. Cheers.

0 Kudos
Message 3 of 3
(2,309 Views)