Builds a distribution, or None when the parameters are outside the family's domain.
Builds a distribution, or None when the parameters are outside the family's domain.
Validation lives here rather than at the call sites so an invalid distribution simply cannot be constructed — normal(0, -1) leaves its node symbolic instead of producing an object whose every kernel would return NaN. The same "domain errors stay symbolic" rule the rest of the library follows.
Value parameters
kind
the family
params
the parameter vector, whose length must match the family's arity
Attributes
Returns
the distribution, or None if the parameters are invalid