jactorch.functional.probability#

Probability distributions related functions.

Functions

check_prob_normalization(p[, dim, atol])

Check if the probability is normalized along a specific dimension.

normalize_prob(a[, dim])

Perform 1-norm along the specific dimension.

Functions

check_prob_normalization(p, dim=-1, atol=1e-5)[source]#

Check if the probability is normalized along a specific dimension.

normalize_prob(a, dim=-1)[source]#

Perform 1-norm along the specific dimension.