BCESolve
unimodal Class Reference

Unimodal distribution. More...

#include <bcedistr.hpp>

Inheritance diagram for unimodal:
Collaboration diagram for unimodal:

Public Member Functions

 unimodal (double _c0, double _m0, int _k0, double _c1, double _m1, int _k1)
 
 unimodal (double _c, double _m, int _k)
 
double CDF (double v0, double v1) const
 The joint CDF of the distribution. 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.
 

Private Attributes

double m0
 
double c0
 
double d0
 
double e0
 
int k0
 
double m1
 
double c1
 
double d1
 
double e1
 
int k1
 

Detailed Description

Unimodal distribution.

Independent draws from distributions that have a single mode. CDF for each element is of the form $F(v)=c(dv-(v-m)^k+e)$, so that PDF is $f(v)=c(d-k(v-m)^{k-1})$.

Member Function Documentation

◆ CDF()

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

The joint CDF of the distribution.

Implements BCEDistr.


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