Static Public Member Functions | List of all members
op_median Class Reference

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

#include <op_median_bones.hpp>

Static Public Member Functions

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

Detailed Description

Class for finding median values of a matrix.

Definition at line 38 of file op_median_bones.hpp.


The documentation for this class was generated from the following files:


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