funcslustVI: Generates cluster assignments and related information given...

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

funcslustVIR Documentation

Generates cluster assignments and related information given functional data.

Description

Generates cluster assignments and related information given functional data.

Usage

funcslustVI(
  x,
  Y,
  K,
  true_cluster_assignments,
  init,
  nbasis,
  convergence_threshold,
  max_iterations,
  gamma_dist_config_matrix,
  verbose,
  draw,
  plot_params
)

Arguments

x

The dependent variable

Y

A matrix in which the rows represent the curves

K

The number of clusters in the data

true_cluster_assignments

The true cluster assignments

init

The initialization method for the algorithim

nbasis

The number of basis functions

convergence_threshold

The threshold that determines when the model has converged

max_iterations

The maximum amount of iterations for the algorithim

gamma_dist_config_matrix

A matrix where the rows are the alpha and parameters for each cluster

verbose

A boolean indicating whether or not to print the inner parameters of the model

draw

Parameter that determines whether or not to plot the real vs estimated curves after fitting the model

plot_params

List of parameters corresponding to characteristics of the plot. Must include vectors xlim and ylim corresponding to the x and y limits of the plot.

Value

A list with entries containing varius information about the fitted model

Examples

fit(x, Y, K, true_cluster_assignments, init, nbasis, convergence_threshold, gamma_dist_config_matrix, verbose, draw, plot_params)

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