Package dsc_suite :: Package tools :: Module statistics :: Class ProbabilityDistributions
[hide private]
[frames] | no frames]

Class ProbabilityDistributions

source code

object --+
         |
        ProbabilityDistributions

class ProbabilityDistribtions() - basic PD functionality

This class implements basic probability distribution functionality, currently the generation of random distributions. One usage is the random benchmark generation.

Most methods are static (class) methods. Basically, this class is used to encapsulated conjoined functions.

Instance Methods [hide private]

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Static Methods [hide private]
distribution
get_distribution(n, method, left, right)
n ...
source code
Class Variables [hide private]
  IMPLEMENTED_DISTRIBUTIONS = ['uniform', 'gauss', 'exponential'...
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

get_distribution(n, method, left, right)
Static Method

source code 

n ... number of generated values method ... random generation method left ... left/lower limit right ... right/upper limit distribution ... list of generated values with given properties

Generates a list of random values by the given method in the given limits. Returns floats.

Returns: distribution

Class Variable Details [hide private]

IMPLEMENTED_DISTRIBUTIONS

Value:
['uniform', 'gauss', 'exponential', 'half-gauss']