metasyn.distribution.uniform.ContinuousUniformDistribution
- class metasyn.distribution.uniform.ContinuousUniformDistribution(lower, upper)
Uniform distribution for floating point type.
This class implements the uniform distribution between a minimum and maximum.
- Parameters:
lower (float) – Lower bound for uniform distribution.
upper (float) – Upper bound for uniform distribution.
Examples
>>> UniformDistribution(lower=-3.0, upper=10.0)
- name
core.uniform
- unique
False
- version
1.0
- var_type
continuous
- __init__(lower, upper)
- Parameters:
lower (float)
upper (float)
Methods
__init__(lower, upper)default_distribution([var_type])Get a distribution with default parameters.
draw()Draw a random element from the fitted distribution.
draw_list(n)Draw a list of values from the distribution.
draw_reset()Reset the drawing of elements to start again.
from_dict(dist_dict)Create a distribution from a dictionary.
information_criterion(values)Get the BIC value for a particular set of values.
matches_name(name)Check whether the name matches the distribution.
provides_var_type(var_type)schema()Create sub-schema to validate GMF file.
to_dict()Convert the distribution to a dictionary.
Attributes
n_parNumber of parameters for distribution.
The identifier for the implemented distribution
Whether the distribution creates only unique values
The variable type of the distribution
Version of the implemented distribution