Table of Contents

Class DiscreteUniformDistribution

Namespace
OptunaSharp.Distributions
Assembly
OptunaSharp.dll

A discretized uniform distribution in the linear domain. Deprecated since Optuna 3.0.0: use FloatDistribution instead.

[Obsolete("DiscreteUniformDistribution 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 DiscreteUniformDistribution : FloatDistribution, IEquatable<BaseDistribution>
Inheritance
DiscreteUniformDistribution
Implements
Inherited Members

Constructors

DiscreteUniformDistribution(double, double, double)

Creates a numeric distribution and normalizes a stepped upper endpoint.

public DiscreteUniformDistribution(double low, double high, double q)

Parameters

low double

Inclusive lower endpoint of the parameter range.

high double

Inclusive upper endpoint; a stepped range may lower it to the last reachable grid point.

q double

Positive spacing of the discrete float grid.

Exceptions

ValueError

The lower endpoint exceeds the upper endpoint, logarithmic bounds are nonpositive, or the step is invalid for the selected scale.

Properties

Q

Discretization step: a proxy for the Step attribute.

public double Q { get; set; }

Property Value

double