dbldatagen.distributions.exponential_distribution module

This file defines the Exponential statistical distributions related classes

class Exponential(rate=None)[source]

Bases: DataDistribution

Specify that random samples should be drawn from the exponential distribution parameterized by rate

Parameters:

rate – value for rate parameter - float, int or other numeric value, greater than 0

See https://en.wikipedia.org/wiki/Exponential_distribution

Scaling is performed to normalize values between 0 and 1

static exponential_func(scale_series: Series, random_seed: Series) Series[source]

Generate sample of exponential distribution using pandas / numpy

Parameters:
  • scale_series – value for scale parameter as Pandas Series

  • random_seed – value for randomSeed parameter as Pandas Series

Returns:

random samples from distribution scaled to values between 0 and 1

generateNormalizedDistributionSample()[source]

Generate sample of data for distribution

Returns:

random samples from distribution scaled to values between 0 and 1

property rate

Return rate parameter

property scale

Return scale implicit parameter. Scale is 1/rate