Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Statistical functions in VFP6 (import)
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00435549
Message ID:
00436175
Views:
38
Andrew,

Actually, this restriction gave me my manager. It's probably incorrect too, since his definition of Median function was wrong.

>Nadya,
>
>>if _tally>3
>> lnMiddleRecord=(_tally/2) && Find middle record
>>else
>> =messagebox('Number of records is less than 3. Can not calculate median...',48)
>
>Where did you find this restriction? My understanding is that the median of two numbers is just the arithmetic mean of those numbers - (n1+n2)/2 - and the median of a one number sample is the number itself.
>
>Cheers,
>
>Andrew
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform