i testing ~ it's correct
Thank You Very Much !!
""Richard Lynch"" <[EMAIL PROTECTED]>
???:[EMAIL PROTECTED]
> If I am reading Wikipeadia correctly, you want this:
>
> function stats_harmonic_mean($array){
> $count = count($array);
> $mean = 0;
> foreach($array as $n){
>$mean += 1/$n;
Per Jessen wrote:
> I don't think you need to know much about statistics - AFAIK, the
> harmonic mean of a group of numbers is simply the reciprocal of
> the 'normal' mean:
>
> harmonic_mean(3,4,5,6) = 1/mean(3,4,5,6)
Ignore that.
/Per Jessen, Zürich
--
PHP General Mailing List (http://www.p
If I am reading Wikipeadia correctly, you want this:
No guarantees as to correctness.
The *real* function probably takes a variable number of arguments, and
you can do that if you need to, but you're on your own for that.
On Fri, December 14, 2007 8:38 am, LKSunny wrote:
> i know it can make s
LKSunny wrote:
> i know it can make simple function, if have Statistics knowledge...
>
I don't think you need to know much about statistics - AFAIK, the
harmonic mean of a group of numbers is simply the reciprocal of
the 'normal' mean:
harmonic_mean(3,4,5,6) = 1/mean(3,4,5,6)
/Per Jessen, Zür
LKSunny wrote:
> i know it can make simple function, if have Statistics knowledge...
ah so you can read a page and therefore determine it's simple even though
you have no 'Statistics knowledge' - brilliant deduction.
you have 3 choices (given that your to stubborn to ask the sys admin to install
i know it can make simple function, if have Statistics knowledge...
reference:
http://en.wikipedia.org/wiki/Harmonic_Mean
"Jochem Maas" <[EMAIL PROTECTED]>
???:[EMAIL PROTECTED]
> LKSunny wrote:
>> i know stats_harmonic_mean(), but i am not server admin, i can't install
>> PECL, so i need ma
LKSunny wrote:
> i know stats_harmonic_mean(), but i am not server admin, i can't install
> PECL, so i need make it by manual, but i have't Statistics knowledge, any
> one can help me ? thank you very much !!
I doubt anyone is going to write a php version of that function for you.
given that y
i know stats_harmonic_mean(), but i am not server admin, i can't install
PECL, so i need make it by manual, but i have't Statistics knowledge, any
one can help me ? thank you very much !!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
8 matches
Mail list logo