Scythe-1.0.3
|
template<typename T , matrix_order PO, matrix_style PS>
Calculate the median of a Matrix. This function calculates the median of a matrix by first sorting the elements of the matrix, and then finding the middle element.
References scythe::Matrix< T_type, ORDER, STYLE >::begin(), scythe::Matrix< T_type, ORDER, STYLE >::end(), floor(), scythe::Matrix_base< ORDER, STYLE >::size(), and sort(). |