estimate#

MomentsComponentEstimator.estimate(X, h, family)[исходный код]#

Estimate the free parameters of a component of the family by its method-of-moments formula.

Параметры:
  • X (UnivariateFloatArray) – The whole sample.

  • h (UnivariateFloatArray) – Column of the partition matrix as float64: 1.0 for the points of the cluster and 0.0 for the others; the points of the cluster are X[h > 0].

  • family (ParametricFamily) – The family of the component.

Результат:

Values of the free parameters of the family only.

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

dict[str, float]

Исключение:

NotImplementedError – If no formula is registered for the family and parametrization.

Заметки

The estimator does not raise ComponentEstimationError: its formulas need no more data than the common lower bound, as many distinct values in the cluster as free parameters, which the calling code checks.