Distribution<T> class abstract

Abstract superclass for probability distributions.

Available distributions

Discrete

Uniform

Implementers

Constructors

Distribution()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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 nonexistent 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