Class UniformDistribution
- Namespace
- OptunaSharp.Distributions
- Assembly
- OptunaSharp.dll
A uniform distribution in the linear domain. Deprecated since Optuna 3.0.0: use FloatDistribution instead.
[Obsolete("UniformDistribution has been deprecated in v3.0.0. This feature will be removed in v6.0.0. See https://github.com/optuna/optuna/releases/tag/v3.0.0. Use :class:`~optuna.distributions.FloatDistribution` instead.")]
public class UniformDistribution : FloatDistribution, IEquatable<BaseDistribution>
- Inheritance
-
UniformDistribution
- Implements
- Inherited Members
Constructors
UniformDistribution(double, double)
Creates a numeric distribution and normalizes a stepped upper endpoint.
public UniformDistribution(double low, double high)
Parameters
lowdoubleInclusive lower endpoint of the parameter range.
highdoubleInclusive upper endpoint; a stepped range may lower it to the last reachable grid point.
Exceptions
- ValueError
The lower endpoint exceeds the upper endpoint, logarithmic bounds are nonpositive, or the step is invalid for the selected scale.