fcaz.typing#

Type aliases and protocols shared across fcaz.

FrozenDistribution and the smaller Supports* protocols describe the methods fcaz needs from a frozen distribution, so any frozen scipy.stats distribution or fcaz object can be passed where one is expected.

ArrayLikeFloat

Represent a PEP 604 union type

FloatOrArray

Represent a PEP 604 union type

SupportsPdfSf(*args, **kwargs)

Any object with pdf and sf methods, such as a frozen scipy distribution.

SupportsLogSf(*args, **kwargs)

Any object with a logsf method, such as a frozen scipy distribution.

FrozenDistribution(*args, **kwargs)

The frozen-distribution interface that Mixture needs from its components.