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 - weight so 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.

Тип результата:

MixtureModel

Исключение:

ValueError – If weight is outside the range (0, 1).