SG++
sgpp::datadriven::DensitySystemMatrix Class Reference

Class that implements the virtual class OperationMatrix for the application of classification for the Systemmatrix by using a density function. More...

#include <DensitySystemMatrix.hpp>

Inheritance diagram for sgpp::datadriven::DensitySystemMatrix:
sgpp::base::OperationMatrix

Public Member Functions

 DensitySystemMatrix (base::Grid &grid, base::DataMatrix &trainData, base::OperationMatrix &C, double lambda)
 Std-Constructor. More...
 
void generateb (base::DataVector &b)
 Generates the right hand side of the classification equation. More...
 
void mult (base::DataVector &alpha, base::DataVector &result)
 Generates the left hand side of the classification equation. More...
 
virtual ~DensitySystemMatrix ()
 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 by using a density function.

Constructor & Destructor Documentation

sgpp::datadriven::DensitySystemMatrix::DensitySystemMatrix ( base::Grid grid,
base::DataMatrix trainData,
base::OperationMatrix C,
double  lambda 
)

Std-Constructor.

Parameters
gridreference to the sparse grid
trainDatareference to DataVector that contains the training data
Cthe regression functional
lambdathe regression parameter

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

sgpp::datadriven::DensitySystemMatrix::~DensitySystemMatrix ( )
virtual

Std-Destructor.

Member Function Documentation

void sgpp::datadriven::DensitySystemMatrix::generateb ( base::DataVector b)

Generates the right hand side of the classification equation.

Parameters
breference to the vector which will contain the result of the matrix vector multiplication on the rhs

References sgpp::base::DataMatrix::getNrows(), sgpp::base::DataVector::mult(), and sgpp::base::DataVector::setAll().

Referenced by sgpp::datadriven::LearnerDensityBasedReg::train(), sgpp::datadriven::LearnerDensityBased::train(), sgpp::datadriven::LearnerSGDE::train(), and sgpp::datadriven::LearnerSGDE::trainOnline().

void sgpp::datadriven::DensitySystemMatrix::mult ( base::DataVector alpha,
base::DataVector result 
)
virtual

Generates the left hand side of the classification equation.

Parameters
alphaparameters for the sparse grid functions
resultreference to the vector which will contain the result

Implements sgpp::base::OperationMatrix.

References sgpp::base::DataVector::axpy(), sgpp::base::DataVector::getSize(), sgpp::base::OperationMatrix::mult(), sgpp::base::DataVector::setAll(), and analyse_erg::tmp.


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