Go to the source code of this file.
Functions | |
| double | d_kth_smallest (double *data, int n, int k) |
| double | dmedian (double *data, int n) |
|
||||||||||||||||
|
Returns the kth smallest value in data[0..n]. Array is partially sorted. Algorithm is based on the book Wirth N. Algorithms + data structures = programs. Englewood Cliffs, Prentice-Hall, 1976.
|
|
||||||||||||
|
Returns the median in array data[0..n]. Array is partially sorted. Algorithm is based on the book Wirth N. Algorithms + data structures = programs. Englewood Cliffs, Prentice-Hall, 1976.
|
1.3.9.1