Learn R Programming

DCEM (version 1.0.0)

priors: priors: Part of DCEM package.

Description

Initializes the prior vectors for the Gaussian(s)

Usage

priors(num)

Arguments

num

(numeric): Number of priors.

Value

A vector of uniformly initialized prior values (numeric).

Details

For example, if the user specify 2 priors then the vector will have 2 entries (one for each cluster) where each will be 1/2 or 0.5.

Examples

Run this code
# NOT RUN {
#Randomly generating the priors.

priors(2)
priors(3)

# }

Run the code above in your browser using DataLab