get_elbo: Gets the elbo value for a single iteration of the algorithim

View source: R/elbo_convergence.R View source: R/elbo_calculation.R

get_elboR Documentation

Gets the elbo value for a single iteration of the algorithim

Description

Gets the elbo value for a single iteration of the algorithim

Usage

get_elbo(
  x,
  Y,
  K,
  phi_matrix,
  m_not_vector,
  nbasis,
  sigma_list,
  m_list,
  A_vector,
  R_vector,
  d_vector,
  probability_matrix,
  alpha_vector,
  beta_vector
)

Arguments

x

The x used to generate the clusters

Y

The matrix containing rows corresponding the curves

K

The number of clusters in the data

phi_matrix

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

m_not_vector

The vector containing m_not values for each cluster

nbasis

The number of basis functions

m_list

A list of the m parameters for each cluster

A_vector

A vector

R_vector

A vector

d_vector

A vector of the d parameters for each cluster

probability_matrix

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

alpha_vector

A vector that in which the entries are the alpha parameters of the gamma distribution (1 / variance) of the curves in each cluster

beta_vector

A vector contain the beta vector for each cluster

Value

The elbo value

Examples

get_elbo(x, Y, K, phi_matrix, m_not_vector, nbasis, sigma_list, m_list, A_vector, R_vector, d_vector, probability_matrix, alpha_vector, beta_vector)

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