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
squared_error< backend, Matrix > Struct Template Reference

Detailed Description

template<Backend backend, class Matrix>
struct shogun::linalg::implementation::special_purpose::squared_error< backend, Matrix >

Generic class which is specialized for different backends to perform the squared_error operation

Definition at line 529 of file implementation/SpecialPurpose.h.

Public Types

typedef Matrix::Scalar T

Static Public Member Functions

static T compute (Matrix P, Matrix Q)

Member Typedef Documentation

typedef Matrix::Scalar T

Scalar type

Definition at line 532 of file implementation/SpecialPurpose.h.

Member Function Documentation

static T compute ( Matrix  P,
Matrix  Q 

Returns the squared error between P and Q. The squared error is defined as \( E(P,Q) = \frac{1}{2} \sum_{ij} (P[i,j]-Q[i,j])^2 \)

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

SHOGUN Machine Learning Toolbox - Documentation