SG++-Doxygen-Documentation
Loading...
Searching...
No Matches
sgpp::base::DistributionTruncExponential Class Reference

#include <DistributionTruncExponential.hpp>

Inheritance diagram for sgpp::base::DistributionTruncExponential:
sgpp::base::Distribution

Public Member Functions

 DistributionTruncExponential (double r=20, double lambda=1)
 Constructor.
 
double eval (double x)
 
sgpp::base::DataVector getBounds ()
 
sgpp::base::DataVector getCharacteristics ()
 return all relevant characteristic values (e.g.
 
sgpp::base::DistributionType getType ()
 
double sample ()
 
virtual ~DistributionTruncExponential ()
 Destructor.
 
- Public Member Functions inherited from sgpp::base::Distribution
 Distribution (typename std::chrono::system_clock::duration::rep seed=777)
 Constructor.
 
sgpp::base::DataVector samples (size_t num)
 
virtual ~Distribution ()
 Destructor.
 

Additional Inherited Members

- Protected Attributes inherited from sgpp::base::Distribution
std::default_random_engine gen
 

Constructor & Destructor Documentation

◆ DistributionTruncExponential()

sgpp::base::DistributionTruncExponential::DistributionTruncExponential ( double  r = 20,
double  lambda = 1 
)
inlineexplicit

Constructor.

◆ ~DistributionTruncExponential()

virtual sgpp::base::DistributionTruncExponential::~DistributionTruncExponential ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ eval()

double sgpp::base::DistributionTruncExponential::eval ( double  x)
inlinevirtual

◆ getBounds()

sgpp::base::DataVector sgpp::base::DistributionTruncExponential::getBounds ( )
inlinevirtual

◆ getCharacteristics()

sgpp::base::DataVector sgpp::base::DistributionTruncExponential::getCharacteristics ( )
inlinevirtual

return all relevant characteristic values (e.g.

mean and standarddeviation for normal distribution)

Implements sgpp::base::Distribution.

◆ getType()

sgpp::base::DistributionType sgpp::base::DistributionTruncExponential::getType ( )
inlinevirtual

◆ sample()

double sgpp::base::DistributionTruncExponential::sample ( )
inlinevirtual

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