Bpp/Statistics
Distribution
C++
 
 
DESCRIPTION
 

This module provides statistical distributions. Thanks to Soni for helping me out with the formulas.

 
SOURCE FILES
 

This section allows you to access the C++ source files of the module.

 
PARENT MODULE
 

This module is part of Bpp/Statistics.

 
INCLUDED FILES
 

The files listed below are included in the interface part of the module. So any module dependent of this module is also dependent of the files listed here.

  • <bpp/standard.hpp>

 
INTEGRATED NAMESPACES
 

The namespaces listed below are integrated in this module. That means any element declared in one of those namespaces can now be directly used by or from this module.

  • standard

 
CLASSES
 

Here are listed the classes provided by the module. To use one of them, you have to specify the namespace of the module.

 
clDistribution
 
 
Declaration

class clDistribution

 
Description

Represents a statistical distribution. It is an abstract class.

 
Methods
 
clExponentialDistribution
 
 
Declaration

class clExponentialDistribution : public clDistribution

 
Description

Represents an exponential distribution with parameter lambda. Its mean value is 1/lambda and its variance is 1/(lambda*lambda).

 
Attributes
  • tyReal lambda()
    Parameter lambda of the exponential distribution. It is the inverse of the mean value of the distribution. Reading and writing access.

 
Methods
 
clNormalDistribution
 
 
Declaration

class clNormalDistribution : public clDistribution

 
Description

Represents a normal distribution. Its parameters are its mean and its variance.

 
Attributes
  • tyReal mean()
    Mean of the distribution. Reading and writing access.

  • tyReal variance()
    Variance of the distribution. Reading access only.

 
Methods
 
clUniformDistribution
 
 
Declaration

class clUniformDistribution : public clDistribution

 
Description

Represents a uniform distribution with parameters a and b. Its mean value is (a+b)/2 and its variance is (b-a)(b-a)/12.

 
Attributes
  • tyReal minimum()
    Parameter a, minimum value generated by the distribution. Reading and writing access.

  • tyReal maximum()
    Parameter b, maximum value generated by the distribution. Reading and writing access.

 
Methods
 
 
Copyright (c) 1999-2016 - Bruno Bachelet - bruno@nawouak.net - http://www.nawouak.net
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.1 or any later version published by the Free Software Foundation. See this license for more details (http://www.gnu.org).