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

Syntax

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

Properties

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