DiscreteDistribution class abstract

Abstract interface of all continuous distributions.

Subclasses must implement at least one of probability or cumulativeProbability.

Inheritance
Implementers

Constructors

DiscreteDistribution()
const

Properties

defaultToStringPrinter → ObjectPrinter
Override to configure the empty ObjectPrinter.
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
kurtosisExcess double
Returns the excess kurtosis.
no setterinherited
lowerBound int
Returns the lower boundary of the distribution.
no setteroverride
mean double
Returns the mean value of the distribution.
no setterinherited
median double
Returns the median value of the distribution.
no setterinherited
mode double
Returns the mode, a value that appears most commonly in the set of values.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
skewness double
Returns the skewness of the distribution.
no setterinherited
standardDeviation double
Returns the expected standard deviation.
no setterinherited
support → Interval<int>
Returns the domain of the distribution.
no setterinherited
toStringPrinter → ObjectPrinter
Override and call super to add values to the ObjectPrinter.
no setterinherited
upperBound int
Returns the upper boundary of the distribution.
no setteroverride
variance double
Returns the expected variance.
no setterinherited

Methods

cumulativeProbability(int k) double
The Cumulative Distribution Function (CDF).
override
inverseCumulativeProbability(num p) int
The Inverse Cumulative Distribution Function (PPT), or quantile function.
override
inverseSurvival(num p) int
Inverse Survival Function (ISF).
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
probability(int k) double
The Probability Density/Mass Function (PDF/PMF).
override
sample({Random? random}) int
Returns a single sample of a random value within the distribution.
inherited
samples({Random? random}) Iterable<int>
Returns an infinite source of random samples within the distribution.
inherited
survival(int x) double
The Survival Function (SF), or Complementary cumulative distribution function.
inherited
toString() String
Standard toString implementation. Do not override, instead implement toStringPrinter to customize.
inherited

Operators

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