SG++
sgpp::combigrid::FirstMomentNormStrategy Class Reference

#include <FirstMomentNormStrategy.hpp>

Inheritance diagram for sgpp::combigrid::FirstMomentNormStrategy:
sgpp::combigrid::NormStrategy< FloatTensorVector >

Public Member Functions

 FirstMomentNormStrategy (std::shared_ptr< sgpp::combigrid::OrthogonalPolynomialBasis1D > basisFunction, size_t numDims, sgpp::combigrid::SingleFunction weightFunction, bool isOrthogonal, sgpp::base::DataVector const &bounds=sgpp::base::DataVector(0))
 
 FirstMomentNormStrategy (std::shared_ptr< sgpp::combigrid::OrthogonalPolynomialBasis1D > basisFunction, sgpp::combigrid::WeightFunctionsCollection &weightFunctions, bool isOrthogonal, sgpp::base::DataVector const &bounds=sgpp::base::DataVector(0))
 
 FirstMomentNormStrategy (sgpp::combigrid::OrthogonalBasisFunctionsCollection &basisFunctions, sgpp::combigrid::WeightFunctionsCollection &weightFunctions, bool isOrthogonal, sgpp::base::DataVector const &bounds=sgpp::base::DataVector(0))
 
double norm (FloatTensorVector &vector) override
 computes the first moment of the given tensor vector More...
 
virtual ~FirstMomentNormStrategy ()
 
- Public Member Functions inherited from sgpp::combigrid::NormStrategy< FloatTensorVector >
 NormStrategy ()
 
virtual ~NormStrategy ()
 

Constructor & Destructor Documentation

sgpp::combigrid::FirstMomentNormStrategy::FirstMomentNormStrategy ( std::shared_ptr< sgpp::combigrid::OrthogonalPolynomialBasis1D basisFunction,
size_t  numDims,
sgpp::combigrid::SingleFunction  weightFunction,
bool  isOrthogonal,
sgpp::base::DataVector const &  bounds = sgpp::base::DataVector(0) 
)
sgpp::combigrid::FirstMomentNormStrategy::FirstMomentNormStrategy ( std::shared_ptr< sgpp::combigrid::OrthogonalPolynomialBasis1D basisFunction,
sgpp::combigrid::WeightFunctionsCollection weightFunctions,
bool  isOrthogonal,
sgpp::base::DataVector const &  bounds = sgpp::base::DataVector(0) 
)
sgpp::combigrid::FirstMomentNormStrategy::FirstMomentNormStrategy ( sgpp::combigrid::OrthogonalBasisFunctionsCollection basisFunctions,
sgpp::combigrid::WeightFunctionsCollection weightFunctions,
bool  isOrthogonal,
sgpp::base::DataVector const &  bounds = sgpp::base::DataVector(0) 
)

Member Function Documentation

double sgpp::combigrid::FirstMomentNormStrategy::norm ( FloatTensorVector vector)
overridevirtual

computes the first moment of the given tensor vector

Parameters
vectortensor
Returns
first moment

Reimplemented from sgpp::combigrid::NormStrategy< FloatTensorVector >.

References sgpp::combigrid::FloatTensorVector::getValues(), and sgpp::combigrid::OrthogonalBasisFunctionsCollection::size().

Referenced by sgpp::combigrid::VarianceNormStrategy::norm().


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