Skip to content

Commit

Permalink
Update mixture.py
Browse files Browse the repository at this point in the history
  • Loading branch information
aloctavodia authored Oct 29, 2024
1 parent 29465c8 commit 6cce4ae
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions preliz/distributions/mixture.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,11 @@ class Mixture(DistributionTransformer):
Parameters
----------
dists: List of PreliZ distributions
Univariate PreliZ distribution which will be the components of the mixture.
They should be all discrete or all continuous.
dists: List of Univariate PreliZ distributions
Components of the mixture. They should be all discrete or all continuous.
weights: list of floats
Weights must >= 0. If the weights do not sum to 1, they will be normalized.
Weights must be larger or equal to 0 and their sum must be positive.
If the weights do not sum up to 1, they will be normalized.
"""

def __init__(self, dists, weights=None):
Expand Down

0 comments on commit 6cce4ae

Please sign in to comment.