Feeds
已回答
Help with calculating median of an array without using built in function?
Heres a quicker way: sortedvec = sort(vec) l = length(sortedvec) x = (l + 1) / 2 median = sortedvec(x)
Help with calculating median of an array without using built in function?
Heres a quicker way: sortedvec = sort(vec) l = length(sortedvec) x = (l + 1) / 2 median = sortedvec(x)
3 years 前 | 0
