with_added_component#
- MixtureModel.with_added_component(component, weight)[исходный код]#
Return a new mixture with an appended component.
The existing component weights are multiplied by
1 - weightso that their proportions are preserved.- Параметры:
component (ParametricFamilyDistribution) – The distribution component to add.
weight (Scalar) – The weight for the new component, a number in the range (0, 1).
- Результат:
A new mixture; this mixture is left unchanged.
- Тип результата:
- Исключение:
ValueError – If
weightis outside the range (0, 1).