BinomialDistribution class Null safety

Binomial distribution.

Inheritance

Constructors

BinomialDistribution({required double p, required int n})
const

Properties

hashCode int
The hash code for this object. [...]
read-only, override
n int
Number of trials.
final
p double
Probability of each trial.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

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