Class DoubleGenerator
- Namespace
- Hegel
- Assembly
- Hegel.dll
Draws 64-bit floating-point numbers.
public sealed class DoubleGenerator : ValueGenerator<double>
- Inheritance
-
DoubleGenerator
- Inherited Members
Properties
Label
The span label the engine files this generator's draws under. Defaults to a label derived from the class's full name.
public override ulong Label { get; }
Property Value
Methods
AllowInfinity(bool)
Whether infinities may be drawn (by default, only towards an unbounded side).
public DoubleGenerator AllowInfinity(bool allow)
Parameters
allowbool
Returns
AllowNan(bool)
Whether NaN may be drawn (by default, only when unbounded).
public DoubleGenerator AllowNan(bool allow)
Parameters
allowbool
Returns
AllowSubnormal(bool)
Whether subnormal numbers may be drawn (by default, when the range contains them).
public DoubleGenerator AllowSubnormal(bool allow)
Parameters
allowbool
Returns
DoDraw(TestCase)
Draw one value. Called inside a span labelled Label: draw from another generator through DrawSilent<T>(Generator<T>), which opens its span, rather than by calling its hook.
protected override double DoDraw(TestCase tc)
Parameters
tcTestCase
Returns
Max(double)
At most max.
public DoubleGenerator Max(double max)
Parameters
maxdouble
Returns
MaxExclusive(double)
Less than max.
public DoubleGenerator MaxExclusive(double max)
Parameters
maxdouble
Returns
Min(double)
At least min.
public DoubleGenerator Min(double min)
Parameters
mindouble
Returns
MinExclusive(double)
More than min.
public DoubleGenerator MinExclusive(double min)
Parameters
mindouble