Skip to main content

NormalDist

Standard library class statistics.NormalDist View source
class NormalDist
class NormalDist
Constructors 1
__init__
__init__(self: Self, mu = 0.0, sigma = 1.0)
Defined in statistics
Properties 5
mean
@property
mean(self: Self)
Defined in statistics
median
@property
median(self: Self)
Defined in statistics
mode
@property
mode(self: Self)
Defined in statistics
stdev
@property
stdev(self: Self)
Defined in statistics
variance
@property
variance(self: Self)
Defined in statistics
Methods 8
pdf
pdf(self: Self, x)
Defined in statistics
cdf
cdf(self: Self, x)
Defined in statistics
zscore
zscore(self: Self, x)
Defined in statistics
inv_cdf
inv_cdf(self: Self, p: float)
Defined in statistics
quantiles
quantiles(self: Self, n: int = 4)
Defined in statistics
overlap
overlap(self: Self, other: NormalDist) -> float
Defined in statistics
samples
samples(self: Self, n: int, *, seed: Optional[int] = None)
Defined in statistics
from_samples
from_samples(data)
Defined in statistics
Special methods 13
__add__
__add__(x1: NormalDist, x2: NormalDist)
Defined in statistics
__add__(x1: NormalDist, x2: float)
Defined in statistics
__sub__
__sub__(x1: NormalDist, x2: NormalDist)
Defined in statistics
__sub__(x1: NormalDist, x2: float)
Defined in statistics
__mul__
__mul__(x1: NormalDist, x2: float)
Defined in statistics
__truediv__
__truediv__(x1: NormalDist, x2: float)
Defined in statistics
__pos__
__pos__(x1: NormalDist)
Defined in statistics
__neg__
__neg__(x1: NormalDist)
Defined in statistics
__radd__
__radd__(x1: NormalDist, x2: float)
Defined in statistics
__rsub__
__rsub__(x1: NormalDist, x2: float)
Defined in statistics
__rmul__
__rmul__(x1: NormalDist, x2: float)
Defined in statistics
__eq__
__eq__(x1: NormalDist, x2: NormalDist)
Defined in statistics
__ne__
__ne__(self: Self, other: NormalDist, /)
Defined in statistics
__hash__
__hash__(self: Self)
Defined in statistics
__repr__
__repr__(self: Self)
Defined in statistics