Static Public Member Functions

op_median Class Reference
[Op_median]

Class for finding median values of a matrix. More...

#include <op_median_proto.hpp>

List of all members.

Static Public Member Functions

template<typename eT >
static eT direct_median (std::vector< eT > &X)
 find the median value of a std::vector (contents is modified)
template<typename eT >
static eT direct_median (const eT *X, const u32 n_elem)
template<typename eT >
static eT direct_median (const subview< eT > &X)
template<typename eT >
static eT direct_median (const diagview< eT > &X)
template<typename T1 >
static void apply (Mat< typename T1::elem_type > &out, const Op< T1, op_median > &in)
 //! For each row or for each column, find the median value. //! The result is stored in a dense matrix that has either one column or one row. //! The dimension, for which the medians are found, is set via the median() function.
template<typename T >
static void direct_cx_median_index (u32 &out_index1, u32 &out_index2, std::vector< arma_cx_median_packet< T > > &X)
template<typename T >
static void direct_cx_median_index (u32 &out_index1, u32 &out_index2, const std::complex< T > *X, const u32 n_elem)
template<typename T >
static void direct_cx_median_index (u32 &out_index1, u32 &out_index2, const subview< std::complex< T > > &X)
template<typename T >
static void direct_cx_median_index (u32 &out_index1, u32 &out_index2, const diagview< std::complex< T > > &X)
template<typename T , typename T1 >
static void apply (Mat< std::complex< T > > &out, const Op< T1, op_median > &in)
 Implementation for complex numbers.

Detailed Description

Class for finding median values of a matrix.

Definition at line 41 of file op_median_proto.hpp.