LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

logrithmic weigthed mean

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?

0 Kudos
Message 1 of 7
(3,121 Views)

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.

0 Kudos
Message 2 of 7
(3,100 Views)

Are you in the same class as sheeham?

 

http://forums.ni.com/t5/LabVIEW/weighted-mean/m-p/303884

0 Kudos
Message 3 of 7
(3,083 Views)

is it possible to send me a image or the in the file form so i can run in labview please ?

0 Kudos
Message 4 of 7
(3,073 Views)

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?

 

0 Kudos
Message 5 of 7
(3,069 Views)

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?

0 Kudos
Message 6 of 7
(3,026 Views)

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.

0 Kudos
Message 7 of 7
(3,018 Views)