UnitInterval.ClosedDouble Struct
A distribution over the closed interval [0, 1].
Namespace
RandN.Distributions
Containing Type
UnitInterval
Interfaces
Base Types
  • object
  • ValueType
UnitInterval.ClosedDouble
ValueType
object
IDistribution<double>

Syntax

public readonly struct UnitInterval.ClosedDouble : ValueType, IDistribution<double>

Properties

NameProperty TypeSummary
InstanceUnitInterval.ClosedDouble
Gets the instance of UnitInterval.ClosedDouble.
static

Methods

NameReturn ValueSummary
Sample<TRng>(TRng)double
Samples a value from rng, blocking until a suitable value is returned.
TrySample<TRng>(TRng, double)bool
Attempts to sample a value from rng once, returning false if the value returned is not suitable.