ExponentialDistribution.h
1//-*-C++-*-
2/***************************************************************************
3 *
4 * Copyright (C) 2007 by Willem van Straten
5 * Licensed under the Academic Free License version 2.1
6 *
7 ***************************************************************************/
8
9// psrchive/Util/genutil/ExponentialDistribution.h
10
11#ifndef __ExponentialDistribution_h
12#define __ExponentialDistribution_h
13
14#include "Probability.h"
15
18
19 public:
20
22 double density (double x);
23
25 double cumulative_distribution (double x);
26
28 double cumulative_mean (double x);
29
31 double cumulative_moment2 (double x);
32
33
34};
35
36#endif
37
Base class of probability density functions.
Definition ExponentialDistribution.h:17
double cumulative_mean(double x)
Get the first moment of the distribution averaged from 0 to x.
Definition ExponentialDistribution.C:32
double cumulative_moment2(double x)
Get the second moment of the distribution averaged from 0 to x.
Definition ExponentialDistribution.C:39
double cumulative_distribution(double x)
Get the value of the distribution function at x.
Definition ExponentialDistribution.C:22
double density(double x)
Get the value of the probability density at x.
Definition ExponentialDistribution.C:12
Base class of probability density functions.
Definition Probability.h:15

Generated using doxygen 1.14.0