BCESolve
truncated Class Reference

Truncated version of a distribution. More...

#include <bcedistr.hpp>

Inheritance diagram for truncated:
Collaboration diagram for truncated:

Public Member Functions

 truncated (BCEDistr *_dist)
 Constructor. More...
 
 truncated (BCEDistr *_dist, double _min, double _max)
 Constructor. More...
 
 truncated (BCEDistr *_dist, double _min0, double _min1, double _max0, double _max1)
 Constructor. More...
 
double CDF (double v0, double v1) const
 Implements BCEDistr::CDF. More...
 
- Public Member Functions inherited from BCEDistr
virtual double CDF (double v0, double v1) const =0
 The joint CDF of the distribution. More...
 
double PDF (double v0, double incr0, double v1, double incr1) const
 Discretized PDF for the BCEDistr. More...
 
double PDF (double v0, double v1, double incr) const
 Discretized PDF for the BCEDistr. More...
 
virtual ~BCEDistr ()
 Virtual destructor.
 

Public Attributes

BCEDistrdist
 The distribution being truncated.
 
double min0
 Minimum 0 coordinate.
 
double min1
 Minimum 1 coordinate.
 
double max0
 Maximum 0 coordinate.
 
double max1
 Maximum 1 coordinate.
 

Detailed Description

Truncated version of a distribution.

Constructor & Destructor Documentation

◆ truncated() [1/3]

truncated::truncated ( BCEDistr _dist)
inline

Constructor.

Truncates the given BCEDistr at _distr to the range $[0,1]^2$.

◆ truncated() [2/3]

truncated::truncated ( BCEDistr _dist,
double  _min,
double  _max 
)
inline

Constructor.

Truncates the distribution at _dist to the range $[min,max]^2$.

◆ truncated() [3/3]

truncated::truncated ( BCEDistr _dist,
double  _min0,
double  _min1,
double  _max0,
double  _max1 
)
inline

Constructor.

Truncates the distribution at _dist to the range $[min_0,max_0]\times[min_1,max_1]$.

Member Function Documentation

◆ CDF()

double truncated::CDF ( double  v0,
double  v1 
) const
inlinevirtual

Implements BCEDistr::CDF.

Implements BCEDistr.


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