From 6cce4ae936fb361f98c7c4c535993e6f20826bcf Mon Sep 17 00:00:00 2001 From: Osvaldo A Martin Date: Tue, 29 Oct 2024 12:29:46 -0300 Subject: [PATCH] Update mixture.py --- preliz/distributions/mixture.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/preliz/distributions/mixture.py b/preliz/distributions/mixture.py index 6a336c8c..de899d69 100644 --- a/preliz/distributions/mixture.py +++ b/preliz/distributions/mixture.py @@ -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):