2.1.2.4. enkie.distributions
Descriptions of probability distributions.
2.1.2.4.1. Module Contents
- class enkie.distributions.UniformDistribution(lb: float = 0.0, ub: float = 1.0)[source]
Uniform distribution in a given interval.
- Parameters:
- copy() UniformDistribution [source]
Creates a copy of this object.
- Returns:
Copy of this object.
- Return type:
- class enkie.distributions.NormalDistribution(mean: float = 0.0, std: float = 1.0)[source]
Normal distribution with given mean and standard deviation.
- Parameters:
- class enkie.distributions.LogUniformDistribution(lb: float = 0.0, ub: float = 1.0)[source]
Log-uniform distribution in a given interval.
- Parameters:
- class enkie.distributions.LogNormalDistribution(log_mean: float = 0.0, log_std: float = 1.0)[source]
Log-normal distribution with given mean and standard deviation.
- Parameters:
- enkie.distributions.distribution_from_string(parameters_string: str) Any [source]
Parses a distribution from a string. The format of the string is <distribution>|<data1>|<…>, where distribution is the type of the distribution and the remaining elements the arguments of the constructor of the distribution. For example, “Uniform|1.0|2.0”.
- enkie.distributions.distribution_to_string(distribution: Any) str [source]
Encodes a distribution in a string. The format of the string is <distribution>|<data1>|<…>, where distribution is the type of the distribution and the remaining elements the arguments of the constructor of the distribution. For example, “Uniform|1.0|2.0”.