dmm.RModel: Create a model using R fucntions

Description Usage Arguments Details Value

View source: R/dmm_model.R

Description

*NOTE: This function is not avaible in the current version of jDirichletMixtureModels.* Create an model object to be used in the dmm.cluster function, using user given R functions.

Usage

1
2
dmm.RModel(pdf_func, sample_func = NULL, marg_func = NULL, params,
  isconjugate = TRUE)

Arguments

pdf_func

A function that takes as input (data, likelihoodparams, params). It returns the value of the probability density function likelihood at (data,likelihoodparams) given params.

params

A list of all hyperparameters needed for the above three functions.

isconjugate

A logical. TRUE (default) if the user specfied model is conjugate, FALSE if not.

sample_fct

Optional for nonconjugate models. A function takes as input (data, params). It returns the value of the sample posterior function at data given params.

marg_fct

Only needed for conjugate models. A function takes as input (data, params). It returns the value of the marginal likelihood funciton at data given params..

Details

@usage model <- dmm.Rmodel(pdf_fct, sample_fct, marg_fct, params, isconjugate=TRUE)

Value

A model object of type RModel which can be passed to dmm.cluster.

#@export


nsdumont/jDirichletMixtureModels documentation built on May 23, 2019, 2:51 p.m.