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

Detailed Description

template<Backend 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)

Method that computes the vector mean

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

Method that computes the matrix mean

amatrix whose mean has to be computed
no_diagif true, diagonal entries are excluded from the mean (default - false)
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