DPMGaus: Dirichlet process mixtures with Gaussian conjugate

Description Usage Arguments Value

View source: R/DPMnormal.R

Description

Dirichlet process mixtures with Gaussian conjugate

Usage

1
2
3
4
5
6
7
8
DPMGaus(
  y,
  n.iter = 1000,
  burn.in = 500,
  mu = 0,
  tau2 = 10,
  type = c("Conjugate", "Neal")
)

Arguments

y

a numeric vector / data to do clustering

n.iter

a scalar / the number of samples

burn.in

a scalar / burn-in period

tau2

a scalar / variance of Gaussian centering distribution

M

a scalar / precision parameter

sigma2

a scalar / variance of Gaussian mixtures

mu0

a scalar / mean of Gaussian centering distribution

Value

list of means of Gaussian mixtures and cluster membership


morner75/BNP documentation built on May 29, 2020, 7:27 p.m.