Distribution Wrapper

@Distribution_Class Module describing statistical distributions

geobipy.src.classes.statistics.Distribution.Distribution(distributionType, *args, **kwargs)

Instantiate a statistical distribution

Parameters:

distributionType (str or subclass of baseDistribution) – If distributionType is str, choose between {Normal, MvNormal, Uniform, Gamma, Order, Categorical} if distributionType is subclass of baseDistribution, a copy is made

Returns:

out – Subclass of baseDistribution

Return type:

The distribution requested

Example

>>> from geobipy import Distribution
>>> import numpy as np
>>> import matplotlib.pyplot as plt
>>> D = Distribution('Normal', 0.0, 1.0)
>>> x = np.linspace(-5.0,5.0,100)
>>> y = D.probability(x)
>>> plt.figure()
>>> plt.plot(x,y)
>>> plt.show()
>>> # To create a Distribution using a specific pseudo random number generator
>>> prng = np.random.RandomState()
>>> D = Distribution('Normal', 0.0, 1.0, prng=prng)