DiscreteDistribution<T> class abstract

Abstract superclass for discrete distributions.

Inheritance
Implementers

Constructors

DiscreteDistribution()
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), {T reverse(R value)?}) DiscreteDistribution<R>
Maps the distribution with the given function.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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