![]() |
Finding mode and median values
I apologise if im posting this in the wrong area.
I'm using Visual Studio and trying to write a small program that takes an array, sorts it in ascending order and then calculates average, mode and median of those values. So far i have sorted it using selective sort, calculated the average but am struggling with the mode and median. This is what i have for my median function so far. I beleive the theory should work behind it. Code:
double getMedian(int num[], int length ) |
Re: Finding mode and median values
So what is it DOING that you don't like? Are we to guess? Someone might; I will not. Also, learn how to put code tags around your own code. Poor Shabbir must be wearing his mouse out.
|
Re: Finding mode and median values
Quote:
Moderation is a difficult job. :cool: |
| All times are GMT +5.5. The time now is 14:29. |