#ifndef DEXP_H_ #define DEXP_H_ #include /** * @short Exponential distribution *
 *  x ~ dexp(lambda)
 *  f(x | lambda) = lambda * exp(-lambda * x) ; x >= 0
 * 
*/ class DExp : public DistReal { public: DExp(); ~DExp(); double d(double x, std::vector const ¶meters, bool give_log) const; double p(double q, std::vector const ¶meters, bool lower, bool give_log) const; double q(double p, std::vector const ¶meters, bool lower, bool log_p) const; double r(std::vector const ¶meters) const; /** * Checks that lambda > 0 */ bool checkParameterValue(std::vector const ¶meters) const; double mean(std::vector const ¶meters) const; double var(std::vector const ¶meters) const; }; #endif /* DEXP_H_ */