NormalDistribution.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/NormalDistribution.h
10
11#ifndef __NormalDistribution_h
12#define __NormalDistribution_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
34 double cumulative_mean_raw(double x);
35
37 double cumulative_moment3_raw(double x);
38};
39
40#endif
41
Base class of probability density functions.
Definition NormalDistribution.h:17
double cumulative_moment2(double x)
Get the second moment of the distribution averaged from 0 to x.
Definition NormalDistribution.C:32
double cumulative_moment3_raw(double x)
Get the raw third moment of the distribution averaged from 0 to x.
Definition NormalDistribution.C:63
double density(double x)
Get the value of the probability density at x.
Definition NormalDistribution.C:14
double cumulative_distribution(double x)
Get the value of the distribution function at x.
Definition NormalDistribution.C:20
double cumulative_mean(double x)
Get the first moment of the distribution averaged from 0 to x.
Definition NormalDistribution.C:26
double cumulative_mean_raw(double x)
Get the raw first moment of the distribution averaged from 0 to x.
Definition NormalDistribution.C:55
Base class of probability density functions.
Definition Probability.h:15

Generated using doxygen 1.14.0