Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Statistical functions in VFP6 (import)
Message
 
 
To
31/10/2000 13:17:24
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00435549
Message ID:
00436456
Views:
29
>Nadya:
>
>Holy Cow! I have an MS in Mathematics and another in Actuarial Sciences and I did not provide you with a correct definition for median. Not at my sharpest at that moment.
>
>I was somewhat suprised with the performance statement because I thought Rushmore would kick in if there was an index on the specified field. Anyway, I tested both versions with 20,000 and 100,000 (with 2% of records deleted) and the performance was insignificant. I don't know how to explain why performance vary on your system.
>
>Daniel

Hi Daniel,

I ran a test this way: firstly I selected records from TranMstr table with price between 100000 and 150000. There were ~400000 records. Then I ran GetMedian & GetMedianValue couple of times. First time they both took ~6sec., then GetMedian took less than 0.5 sec. and GetMedianValue still took ~6sec.
In GetMedian I don't select anything, so if I have an index on desired field, it should run very quickly.

Did you run functions from FAQ?
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