#ifndef DWEIB_H_
#define DWEIB_H_
#include <distributions/DistReal.h>
/**
* <pre>
* x ~ dweib(a, b)
* f(x|b,a) = a * b * x^(b - 1) * exp (- a * x^b)
* </pre>
* @short Weibull distribution
*/
class DWeib : public DistReal {
public:
DWeib();
~DWeib();
double d(double x, std::vector<SArray const *> const ¶meters,
bool give_log) const;
double p(double q, std::vector<SArray const *> const ¶meters, bool lower,
bool give_log) const;
double q(double p, std::vector<SArray const *> const ¶meters, bool lower,
bool log_p) const;
double r(std::vector<SArray const *> const ¶meters) const;
/**
* Checks that a > 0, b > 0
*/
bool checkParameterValue (std::vector<SArray const *> const ¶meters) const;
double mean(std::vector<SArray const*> const ¶meters) const;
double var(std::vector<SArray const*> const ¶meters) const;
};
#endif /* DWEIB_H_ */
syntax highlighted by Code2HTML, v. 0.9.1