weightedSestimator: weightedSestimator

Description Usage Arguments Value

View source: R/weightedSestimator.R

Description

Computes the weighted location and scatter matrix estimators of the j-th mixture component , where the weights are calculated in the expectation-step.

Usage

1
2
3
4
5
6
7
8
weightedSestimator(
  Y,
  mu_init,
  sigma_init,
  max_iterFP = 1,
  weights,
  fixed_alpha
)

Arguments

Y

A matrix of size n x p.

mu_init

The previously computed center: an numerical array of length p.

sigma_init

The previously computed scatter matrix: an array of numeric values p x p

max_iterFP

the maximum number of fixed point iterations used for the algorithm, defaults to 1

weights

The weights that contain the probability membership of each observation (related to the overall mixture components)

fixed_alpha

the fixed alpha value for the corresponding mixture component

Value

A list including the estimated K centers and labels for the observations list(cov=matrixSigma,covAux1=covAux1,mu=muk,s=sk)


RMBC documentation built on July 22, 2021, 9:07 a.m.