DiscreteDistribution<T> class Null safety

Abstract superclass for discrete distributions.

Inheritance
Implementers

Constructors

DiscreteDistribution()
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), {T reverse(R value)?}) DiscreteDistribution<R>
Maps the distribution with the given function. [...]
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
pmf(T value) double
Probability mass function (PMF) tells probability of specific event. [...]
sample({Random? random}) → T
Generates a random sample. [...]
inherited
sampleList(int length, {Random? random}) List<T>
Generates a list of N random samples. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

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