Distribution<T> class Null safety

Abstract superclass for probability distributions.

Available distributions

Discrete

Uniform

Implementers

Constructors

Distribution()
const

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

map<R>(R f(T value)) Distribution<R>
Maps samples of the distribution with the given function. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
sample({Random? random}) → T
Generates a random sample. [...]
sampleList(int length, {Random? random}) List<T>
Generates a list of N random samples. [...]
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited