10-31-2014 08:53 AM - edited 10-31-2014 08:58 AM
Hi,
how i can create a subroutine to calculate logrithmic weigthed mean pressure and diameter i know the the subroutine for simple mean but not for this :
Mathemitical formula is:
logdg=Σ ni( logdi)/N
Also need to calculate Weigthed geometric mean and standard deviation 😞
Can anyone please help?
10-31-2014 11:48 AM
The basic idea is to use a FOR loop to step through all of the values (of diameter, for example) and do the inside-the-summation calculation for each. Sum the array of outputs and divide by the total number, per your formula.
10-31-2014 02:23 PM
10-31-2014 05:05 PM
is it possible to send me a image or the in the file form so i can run in labview please ?
10-31-2014 05:12 PM
It is more appropriate for you to supply what you have tried and ask a question than it is for us to supply an answer to your homework problem. What have you got so far and what problems are you having with the code?
11-01-2014 08:06 PM - edited 11-01-2014 08:07 PM
hi,
I tried to create a Vi for mean and standard deviation but i wnat for weigthed mean and weighted standard deviation please suggest wat next i should do?
11-01-2014 08:18 PM
You actually didn't create a VI for mean or std. deviation. You just used the built-in LabVIEW subVI.
That's okay. You can open up that subVI and see how they calculated it using basic LabVIEW primitives and compare it to the equations. Then you can figure out how to modify it to work with whatever mathematical equations you have found for a logarithmic weighted version.