Table of Contents

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

ulong

Methods

AllowInfinity(bool)

Whether infinities may be drawn (by default, only towards an unbounded side).

public DoubleGenerator AllowInfinity(bool allow)

Parameters

allow bool

Returns

DoubleGenerator

AllowNan(bool)

Whether NaN may be drawn (by default, only when unbounded).

public DoubleGenerator AllowNan(bool allow)

Parameters

allow bool

Returns

DoubleGenerator

AllowSubnormal(bool)

Whether subnormal numbers may be drawn (by default, when the range contains them).

public DoubleGenerator AllowSubnormal(bool allow)

Parameters

allow bool

Returns

DoubleGenerator

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

tc TestCase

Returns

double

Max(double)

At most max.

public DoubleGenerator Max(double max)

Parameters

max double

Returns

DoubleGenerator

MaxExclusive(double)

Less than max.

public DoubleGenerator MaxExclusive(double max)

Parameters

max double

Returns

DoubleGenerator

Min(double)

At least min.

public DoubleGenerator Min(double min)

Parameters

min double

Returns

DoubleGenerator

MinExclusive(double)

More than min.

public DoubleGenerator MinExclusive(double min)

Parameters

min double

Returns

DoubleGenerator