Z is an \(n\) by \(numClusters\) matrix of non-negative numbers whose rows sum to 1. The \(ij^{\mathrm{th}}\) element \(z_{ij}\) is a probability that observation \(i\) belongs to cluster \(j\). Rather than begin from an initial assignment Multimix allows for a weighted assignment accross several clusters.

make_Z_discrete(d)

Arguments

d

integer

Value

a matrix whose entries are non-negative, and whose entries sum to 1.

Details

This function yields a 0/1 valued matrix.

Author

Murray Jorgensen

Examples

stage = scan(file = system.file('extdata', 'Stage.txt', package = 'multimix'))
stage = stage - 2
Z = make_Z_discrete(stage)