Searched refs:iMid (Results 1 – 1 of 1) sorted by relevance
3130 vector<double>::iterator iMid = rArray.begin() + nMid; in GetMedian() local3131 ::std::nth_element( rArray.begin(), iMid, rArray.end()); in GetMedian()3133 return *iMid; // Lower and upper median are equal. in GetMedian()3136 double fUp = *iMid; in GetMedian()3138 iMid = rArray.begin() + nMid - 1; in GetMedian()3139 ::std::nth_element( rArray.begin(), iMid, rArray.end()); in GetMedian()3140 return (fUp + *iMid) / 2; in GetMedian()
Completed in 51 milliseconds