Distribution<T> class abstract

Abstract interface of all distributions.

Implementers
Annotations
  • @immutable

Constructors

Distribution()
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 setter
lowerBound → T
Returns the lower boundary of the distribution.
no setter
mean double
Returns the mean value of the distribution.
no setter
median double
Returns the median value of the distribution.
no setter
mode double
Returns the mode, a value that appears most commonly in the set of values.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
skewness double
Returns the skewness of the distribution.
no setter
standardDeviation double
Returns the expected standard deviation.
no setter
support → Interval<T>
Returns the domain of the distribution.
no setter
toStringPrinter → ObjectPrinter
Override and call super to add values to the ObjectPrinter.
no setterinherited
upperBound → T
Returns the upper boundary of the distribution.
no setter
variance double
Returns the expected variance.
no setter

Methods

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

Operators

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