UniformDistribution class
Uniform continuous distribution.
Example
const d = UniformDistribution(1.3)
- Inheritance
-
- Object
- Distribution<
double> - ContinuousDistribution
- UniformDistribution
Constructors
- UniformDistribution(double min, double max)
-
const
Properties
Methods
-
cdf(
double x) → double -
Cumulative Distribution Function (CDF).
override
-
map<
R> (R f(double value)) → Distribution< R> -
Maps samples of the distribution with the given function.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pdf(
double x) → double -
Probability Density Function (PDF).
override
-
probabilityForRange(
double min, double max) → double -
Calculates probability that the value is in the range.
inherited
-
sample(
{Random? random}) → double -
Generates a random sample.
override
-
sampleList(
int length, {Random? random}) → List< double> -
Generates a list of N random samples.
inherited
-
slice(
{double min = double.negativeInfinity, double max = double.infinity, int? attempts}) → ContinuousDistribution -
Returns a slice of the distribution.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override