update_m_list: Update the m parameter for each cluster

View source: R/model.R View source: R/main_model.R

update_m_listR Documentation

Update the m parameter for each cluster

Description

Update the m parameter for each cluster

Usage

update_m_list(
  Y,
  m_not_vector,
  phi_matrix,
  K,
  A_vector,
  R_vector,
  probability_matrix,
  x,
  nbasis,
  sigma_list
)

Arguments

Y

The matrix containing rows corresponding the curves

m_not_vector

The vector containing m_not values for each cluster

phi_matrix

A matrix of the coffecient vectors for each cluster, phi_k, of the basis matrix B

K

The total number of clusters

A_vector

A vector

R_vector

A vector

probability_matrix

A matrix in which the rows represent the probabilities that the curve is in each of the clusters

x

The x used to generate the clusters

nbasis

The number of basis functions

sigma_list

A list of the updated sigma parameters for each cluster

Value

A list of the updated m parameters for each cluster

Examples

update_m_list(K, A_vector, R_vector, probability_matrix, x, nbasis)

jewelltaylor/funclustVI documentation built on June 1, 2022, 12:30 p.m.