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

Syntax

public readonly struct Closed.Double : ValueType, IDistribution<double>

Properties

NameProperty TypeSummary
InstanceClosed.Double
Gets the instance of Closed.Double.
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.