Classes | Functions
Op_median

Classes

struct  arma_cx_median_packet< T >
 
class  op_median
 Class for finding median values of a matrix. More...
 

Functions

template<typename T1 >
static void op_median::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. More...
 
template<typename T , typename T1 >
static void op_median::apply (Mat< std::complex< T > > &out, const Op< T1, op_median > &in)
 Implementation for complex numbers. More...
 
template<typename T >
static void op_median::direct_cx_median_index (uword &out_index1, uword &out_index2, std::vector< arma_cx_median_packet< T > > &X)
 
template<typename T >
static void op_median::direct_cx_median_index (uword &out_index1, uword &out_index2, const std::complex< T > *X, const uword n_elem)
 
template<typename T >
static void op_median::direct_cx_median_index (uword &out_index1, uword &out_index2, const subview< std::complex< T > > &X)
 
template<typename T >
static void op_median::direct_cx_median_index (uword &out_index1, uword &out_index2, const diagview< std::complex< T > > &X)
 
template<typename eT >
static eT op_median::direct_median (std::vector< eT > &X)
 find the median value of a std::vector (contents is modified) More...
 
template<typename eT >
static eT op_median::direct_median (const eT *X, const uword n_elem)
 
template<typename eT >
static eT op_median::direct_median (const subview< eT > &X)
 
template<typename eT >
static eT op_median::direct_median (const diagview< eT > &X)
 
template<typename T >
bool operator< (const arma_cx_median_packet< T > &A, const arma_cx_median_packet< T > &B)
 
template<typename eT >
static arma_inline eT op_median::robust_mean (const eT A, const eT B)
 
template<typename T >
static arma_inline std::complex< T > op_median::robust_mean (const std::complex< T > &A, const std::complex< T > &B)
 

Detailed Description

Function Documentation

template<typename T1 >
void op_median::apply ( Mat< typename T1::elem_type > &  out,
const Op< T1, op_median > &  in 
)
inlinestatic

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.

Definition at line 117 of file op_median_meat.hpp.

template<typename T , typename T1 >
void op_median::apply ( Mat< std::complex< T > > &  out,
const Op< T1, op_median > &  in 
)
inlinestatic

Implementation for complex numbers.

Definition at line 304 of file op_median_meat.hpp.

template<typename T >
void op_median::direct_cx_median_index ( uword out_index1,
uword out_index2,
std::vector< arma_cx_median_packet< T > > &  X 
)
inlinestatic

Definition at line 193 of file op_median_meat.hpp.

template<typename T >
void op_median::direct_cx_median_index ( uword out_index1,
uword out_index2,
const std::complex< T > *  X,
const uword  n_elem 
)
inlinestatic

Definition at line 224 of file op_median_meat.hpp.

template<typename T >
void op_median::direct_cx_median_index ( uword out_index1,
uword out_index2,
const subview< std::complex< T > > &  X 
)
inlinestatic

Definition at line 250 of file op_median_meat.hpp.

template<typename T >
void op_median::direct_cx_median_index ( uword out_index1,
uword out_index2,
const diagview< std::complex< T > > &  X 
)
inlinestatic

Definition at line 277 of file op_median_meat.hpp.

template<typename eT >
eT op_median::direct_median ( std::vector< eT > &  X)
inlinestatic

find the median value of a std::vector (contents is modified)

Definition at line 33 of file op_median_meat.hpp.

template<typename eT >
eT op_median::direct_median ( const eT *  X,
const uword  n_elem 
)
inlinestatic

Definition at line 57 of file op_median_meat.hpp.

template<typename eT >
eT op_median::direct_median ( const subview< eT > &  X)
inlinestatic

Definition at line 71 of file op_median_meat.hpp.

template<typename eT >
eT op_median::direct_median ( const diagview< eT > &  X)
inlinestatic

Definition at line 92 of file op_median_meat.hpp.

template<typename T >
bool operator< ( const arma_cx_median_packet< T > &  A,
const arma_cx_median_packet< T > &  B 
)
inline

Definition at line 30 of file op_median_bones.hpp.

template<typename eT >
arma_inline eT op_median::robust_mean ( const eT  A,
const eT  B 
)
static

Definition at line 22 of file op_median_meat.hpp.

template<typename T >
arma_inline std::complex< T > op_median::robust_mean ( const std::complex< T > &  A,
const std::complex< T > &  B 
)
static

Definition at line 182 of file op_median_meat.hpp.



armadillo_matrix
Author(s):
autogenerated on Fri Apr 16 2021 02:32:00