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::EIGEN3, Matrix > Struct Template Reference

Detailed Description

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

Specialization of generic mean which works with SGVector and SGMatrix and uses Eigen3 as backend for computing mean.

Definition at line 149 of file MeanEigen3.h.

Public Types

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

Static Public Member Functions

static ReturnType compute (SGVector< T > vec)
 
static ReturnType compute (SGMatrix< T > mat, bool no_diag=false)
 

Member Typedef Documentation

typedef int2float<T>::floatType ReturnType

int2float type

Definition at line 155 of file MeanEigen3.h.

typedef Matrix::Scalar T

Scalar type

Definition at line 152 of file MeanEigen3.h.

Member Function Documentation

static ReturnType compute ( SGVector< T vec)
static

Method that computes the mean of SGVectors using Eigen3

Parameters
veca vector whose mean has to be computed
Returns
the vector mean \(\bar a_i\)

Definition at line 163 of file MeanEigen3.h.

static ReturnType compute ( SGMatrix< T mat,
bool  no_diag = false 
)
static

Method that computes the mean of SGMatrix using Eigen3

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}\)

Definition at line 177 of file MeanEigen3.h.


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

SHOGUN Machine Learning Toolbox - Documentation