SHOGUN  4.2.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
List of all members | Public Types | Static Public Member Functions
mean< Backend, Matrix > Struct Template Reference

Detailed Description

template<enum Backend, class Matrix>
struct shogun::linalg::implementation::mean< Backend, Matrix >

Generic class mean which provides a static compute method.

Definition at line 87 of file MeanEigen3.h.

Public Types

typedef Matrix::Scalar T
 
typedef int2float< T >::floatType ReturnType
 

Static Public Member Functions

static ReturnType compute (Matrix a)
 
static ReturnType compute (Matrix a, bool no_diag=false)
 

Member Typedef Documentation

typedef int2float<T>::floatType ReturnType

int2float type

Definition at line 93 of file MeanEigen3.h.

typedef Matrix::Scalar T

Scalar type

Definition at line 90 of file MeanEigen3.h.

Member Function Documentation

static ReturnType compute ( Matrix  a)
static

Method that computes the vector mean

Parameters
avector whose mean has to be computed
Returns
the vector mean \(\bar a_i\)
static ReturnType compute ( Matrix  a,
bool  no_diag = false 
)
static

Method that computes the matrix mean

Parameters
amatrix whose mean has to be computed
no_diagif true, diagonal entries are excluded from the mean (default - false)
Returns
the matrix mean \(\1/N^2\sum_{i,j=1}^N m_{i,j}\)

The documentation for this struct was generated from the following file:

SHOGUN Machine Learning Toolbox - Documentation