SG++

Class that implements the virtual class OperationMatrix for the application of classification for the Systemmatrix with weight. More...

#include <DMWeightMatrix.hpp>

## Public Member Functions

DMWeightMatrix (sgpp::base::Grid &SparseGrid, sgpp::base::DataMatrix &trainData, sgpp::base::OperationMatrix &C, double lambda, sgpp::base::DataVector &w)
Std-Constructor. More...

void generateb (sgpp::base::DataVector &classes, sgpp::base::DataVector &b)
Generates the right hand side of the classification equation. More...

virtual void mult (sgpp::base::DataVector &alpha, sgpp::base::DataVector &result)
starts the Multiplication with the matrix More...

virtual ~DMWeightMatrix ()
Std-Destructor. More...

Public Member Functions inherited from sgpp::base::OperationMatrix
OperationMatrix ()
Constructor. More...

virtual ~OperationMatrix ()
Destructor. More...

## Detailed Description

Class that implements the virtual class OperationMatrix for the application of classification for the Systemmatrix with weight.

## Constructor & Destructor Documentation

 sgpp::datadriven::DMWeightMatrix::DMWeightMatrix ( sgpp::base::Grid & SparseGrid, sgpp::base::DataMatrix & trainData, sgpp::base::OperationMatrix & C, double lambda, sgpp::base::DataVector & w )

Std-Constructor.

Parameters
 SparseGrid reference to the sparse grid trainData reference to sgpp::base::DataVector that contains the training data C the regression functional lambda the lambda, the regression parameter w the weights to the training data

References sgpp::op_factory::createOperationMultipleEval(), and lambda.

virtual

Std-Destructor.

## Member Function Documentation

 void sgpp::datadriven::DMWeightMatrix::generateb ( sgpp::base::DataVector & classes, sgpp::base::DataVector & b )

Generates the right hand side of the classification equation.

Parameters
 classes the class information of the training data b reference to the vector that will contain the result of the matrix vector multiplication on the rhs
 void sgpp::datadriven::DMWeightMatrix::mult ( sgpp::base::DataVector & alpha, sgpp::base::DataVector & result )
virtual

starts the Multiplication with the matrix

Parameters
 alpha DataVector that contains the ansatzfunctions' coefficients result DataVector into which the result of the Laplace operation is stored

Implements sgpp::base::OperationMatrix.

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